It is such a bad system that lets 1 immigration officer decide your fate . Rules do not apply . Up to him only . Just hope he not had a bad day . You can pay 5000 baht for safe entry though if you worried .
I did 1 year and 8 days from Jan 1st 2024 . Went home for 5 months . Returned for 30 days but was denied entry and sent back home . It is not pleasant you are treated like a criminal . I would advise getting the right visa . You may get a long stay with border runs but it stays on your record .