Thailand's leadership simply can't agree on this, some want as many tourists as possible who stay as long as they have money to spend, while others see that as a security risk first and foremost.
So the result is that there isn't a clear limit in place, conveniently giving an IO three choices depending on their personality and mood: Relaxed, power-tripping or money-grabbing. Which explains why personal experiences reported here are all over the place.