Most of the time pretty easy. Tourists dress like, well, tourists. And act like tourists. Short shorts, tank tops, no shirts for men, driving like they have never been on a motorbike, weaving in and out of dangerous situations. Local expats dress more conservative and treat Thais with respect, for the most part. At least in the area of Phuket that I live in.