But to be honest, if you want to stay in Thailand long term and are over 50, it is easier/cheaper to get a retirement visa than try to "game the system". If you don't have the 800k in the bank, use an agent, anyway it's cheaper than doing border hops.