you say 2 x 90 day visas… what visa ( Tourist Visa ) applied for in your home country prior to arrival in Thailand? I note you say you haven’t been in Thailand for about a year so I am pretty sure the 60 day Visa Exempt was not in force till June last year.
seems harsh, how long was your cumulative stay in Thailand on your FIRST visit???
I was in Thailand last year on 3 occasions… first stay was in February/march 28 day stay then end of July to early Sept 56 days after the into of the 60 day visa exempt had started and then back end of November to 20th December like 25 days… had no issue any time and I have been going every year except COVID years since 2012… I think you got a I.O. who was in a Special Mood that day.
It is found within the name of the document… Passport…
Pass through any Port
The whole concept is as an Identifier of a person that is recognised as a Citizen of a country to allow movement through other countries.
Where your abode or address within the origin of your Citizenship is of no importance to the country you are visiting/travelling through, they want to know WHERE you are staying when within their country.
Employee BIAS is a real thing, maybe their friend or cousin had a romantic connection with a FARANG that went sour and so now they make it their mission to pay back any Farang they cross paths with in their capacity at the bank.
stayed 29 days across February to March, stayed 7 weeks across end of July to early September, then 4 weeks end of November into December last year, didn’t have an issue.
It is definitely at the sole discretion of the I.O you encounter at the arrivals hall wherever you enter, but as others have mentioned, the I.O’s can see when you are keeping tourist movements as opposed to those the try to abuse the visa exempt system.