Is it legal for a digital nomad employed by a us company to work in the us while on a tourist visa?

a digital nomad working for a company based in US in his home country went to US with a tourist visa but still continue working full time while in the US... is this legal? and what are the possible consequences if it is a visa violation?
Asked May 18, 2017

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.