if a person strings together multiple consecutive visa exempt stays in Thailand, immigration starts to pay attention and might deny entry or give a warning to get some type of long stay visa. On the other hand if visa exempt stays in Thailand are separated by stays of reasonable duration in other countries, then you should be fine. In this latter example, you are functioning as a tourist, not someone who is trying to stay long-term in Thailand on short term visa exemptions and extensions.