TBH it's not only in Thailand. In many countries the locals are getting fed-up of foreigners - especially immigrants. The simple fact is, that the locals lifestyle is disrupted by the foreigners. Rising rents, job availability, congestion of the public transport system etc.
Generally, tourists are well accepted, but it's difficult for the locals to differentiate one from the other immediately.