@Vit ********
This is Thailand. Unfortunately nothing is ever sure. And things are unfortunately almost never handled uniquely. I am sure about this approach in Chiang Mai immigration office. I also see why it makes sense to do it this way. But there may very well other immigration offices handling things differently. In Thailand you ask three people and get three answers.