Your entry isn't at the discretion of an IO, there are laws everyone on both sides have to follow. If an immigration office wants to refuse you entry, there must be a legal basis to do so. Entering Thailand often isn't a legal basis to refuse someone entry.