As a foreign you cannot outright buy any land, if you have a thai company (51 per cent thai) and you hold the directorship to control the company.
You can purchase a home outright and leasehold the land.
In Thai you cannot separate a house from the land, so once it's built and you have a leasehold for 30 years. It is a relatively safe situation.
As for let's say a Condo, If the foreign ownership quota is available you can purchase "foreign freehold " or again thai company to get around that quota.
All things like this are risky for a farang, we do not have any real protections there.
thanks good info I'm gonna be 55 by the time we can get there hopefully next year, covid dependent. I'm seeing it is more expensive than I had been led to believe.
I used a Thai consultant, on a 30 day tourist visa, had to have a thai cell phone and some other docs. Probably cost me 3000baht but had it all done in one day. Just last Feb.