@Ryan ********
as long as you enter before the end date on the visa, you should be fine. Just make sure you stamp out of Thailand, stamp INTO another country, and then return to Thailand.
You can't just turn around halfway on the bridge to another country for example.