in order to be a tax resident you need to live in Thailand for 180 ish days a year, so if you bring the 800k in a year when you are not tax resident its then tax free, likewise any savings before 1st jan 2024 brought in are tax free
try and avoid being a tax resident to guarantee being income Thai tax free, or do as a lot of people are doing and ignore the Thai tax rules