Can you share any details?
What country issued your passport?
How long do you plan to stay in Thailand, when returning "overland"?
Where are you now? When do you arrive?
There are many variables to consider, and without more detailed information it is challenging to make specific recommendations.