@Natalie ********
you are allowed two free visa exempt entries by land in a calendar year,
so there's no need to fly out and back or go to a thai consulate in another country and buy a tourist visa
You could use a service that would bounce you out and back at the border to get 45 day free entry.