According to Thailand's official rules, you can bring up to $20,000 USD or the currency equivalent into the country before you have to declare it to customs. If you're bringing Thai baht (THB) into the country rather than a foreign currency, the most you can carry with you is 500,000 THB.
The Thai banking system is the wild Wild West where no one really says anything about where your money comes from