best way to avoid divorce, is don't marry. a wife can cancel a lease one year after divorce, so don't agree to divorce until financial matters are resolved, if married, and land/house involved. most countries don't have jurisdiction in other countries. with the exception of child support.
if not married, a userfuct is the best to have, not a lease, same if married. 2 types, one is for use, the other is for everything, use/modify/build/wreck. if possible, have a lease to a 3rd party you trust, a judge will not cancel anything if it effects a 3rd party. NEVER build on family land or live near family of gf/wife, when it hits the fan, your security may be at risk. would you want to live there anyway, with her family around, if you end up buying her out. though you could always sell, if ex family doesn't wreck the place or derail every prospective buyer.........simply say there are ghost in the house, and no thai would buy it. too simple. RENT RENT RENT, unless your relationships all last more than 10 yrs, then you will get some use and return on investment, or you have disposable cash reserve, in which case, more advise can be given for beers, preferably at irish clock.
from someone who has been there, done that, too many times, and lucked out.
good luck to all those who may need it.