Stepping back then back again in a
country over a short period of
time (ie same day) - in order to reset/extend the period of days a non-resident can stay in a
country.
Most foreign visitors to
Thailand are granted a 30 day visa on arrival in Thailand. Staying longer requires a
new visa, and the fastest & most economical means of getting it is a visa
run: exit Thailand and return.