@John ********
A simple Google search will tell you about it is illegal.
This is why the DTV visa was created to make it legal...
****************************************************
Now generally the consensus is as long as you don't talk about it don't do it openly and you're not paid in Thailand and your employer is another country... You might be under the radar...