i for one don't believe this story......if you live in Thailand as a Citizen then you get a Pink ID card.....I don't believe any IO would consider deporting residents. Makes no sense to me.
The visa costs over £300. It sounds like you don’t need one as you get stamped in for 60 days at a time. They probably know when you got stamped into Thailand from passport number.