DDR tried to deport me back to Denmark where my ticket to Dresden had originated as I had "nipped in and out of West Berlin" in transit. My broken German and a few DMs ensure di was able to exit to Prague on condition bought a ticket all the way to the frontier, ths was many moons ago before computerised passports , scanners in the era of paper docs and no computers widespread.
Thanks to bloody .9/11 we all have endles ID checks and Chinese style monitoring of DNA from cradle to grave seems inevitable.
Depsite 40m a year at immigration and rumbles about taxing global income rural Thailand is far less regulated than the UK or France in my recent experience.