Your place of origin will give you a hassle, more then likely. Book a cheap ticket air plane, bus or train out of Thailand before your 30 day visa exempt is up.
Have it all booked before you go to board the flight out of your place of origin. I can almost guarantee they are going to ask about it. You’ll need that information for your Immigration card (TM6) you’ll fill out before you land.