It's Thailand. It's down yo how the immigration officer feels on the day. He may have had a row with his wife that morning .!! Stick to the rules. Don't try to break the rules. You are a guest in their country. The least you can do is respect their laws. The law is quite clear.