Foreighners are allowed to own properties like Condos, but not allowed to own land. But you can lease the land legally for 33years with an option of another 33 years.
You should retain a Thai lawyer to review the documents and also do title search on the property, etc. I can probably recommend a Thai conveyancing lawyer to you if you need one - just PM me.