It used to be that if you spent more than 180 days a year inside Thailand, unless you are over 55, you must be working and pay tax. It happened to me. They would not let me check in at the airport. I hope that things have changed. But it will be interesting for these long term tourists if it hasn't.