OP, if you haven't been in Thailand before, border runs are easy to do. Just try to be in the other country for a week or so, instead of one day.
It's at the third or fourth border run that officials may start giving you a hard time, but it's usually just a show. Also, most immigration officers are women nowadays, and the hotter they are the higher in hierarchy they are (Thailand can be a shallow country sometimes). This means that for each subsequent border run that you do, since your case gets more complicated, the officer that will personally come to talk you︀ to review your case will get progressively hotter. It will make you wonder for how︁ long should you keep doing this. At some point she may even lead you to︂ an office to talk in private with her. That's your punishment for being a bad︃ boy. Yes, welcome to Thailand.
After 15 minutes of this show, they'll let you go︄ through.
Of course, try not to abuse this system, but it's not an issue when︅ staying in Thailand for less than a year. After a year, move to a new︆ country for a year or two, then go back to Thailand, or just get a︇ more permanent solution (Thailand Elite is your best friend if you have a family, although︈ that may change in October, as all Thai Elite visa programs will be rebranded).