The same happened to me about 2.5 years ago at DM airport. I made 3 trips out of TH (Cambodia, Malaysia, Vietnam) - each between 3 and 4 weeks long. Three IO talked to me for a long time. They insisted I needed a proper Visa. Had to sign a report. Will definitely get a visa next time.