Pfff one more people on thiny budget that wanna go in thailand, he do not think that if he get sick or have accident (this never happen!) he wont have money to pay the expenses, this contribute to raise a bad "image" to those that can afford a bad situation. QED
I think for the law if you get salary in thailand it mean you work. you can choose to be paid in your own country but... you will have to pay taxes there too...