There is no official limit on how many times you can stamp in/out of Thailand via air land or sea plus extensions of the visa exempt stamp
With that being said
You will eventually run into an I/O who will say No or give you a stern warning about your visa exemption log with no real visa
Haters will argue with me or the masses in here will say use an agent to get through the red tape at immigration checkpoints via border bounces and the Sotomor
If you have the necessary ฿500k Baht required and the time to take a soft DTV course (cooking, Muay Thai etc) then go for the DTV…pro you get 5 years out of it
It’s up to you and what you want out of your time and visa