I am a Canadian, wanting to go to the states at the end of the summer– California to be specific.

I was wondering if it is legal to do work while in the states for my Canadian clients, to be paid either during my stay or upon returning home? I’m a self-employed (freelance) web developer.

To my understanding, the laws exist to prevent visitors from taking american jobs, but since this would have no effect on that what-so-oever, is this legal?

Hope someone knows and can link a document with more information, I’ve been unable to find anything specific to my case.

Thanks!