https://www.canada.ca/en/immigration-refugees-citizenship/co...
like, i'm american, and i work for a US company, and i work in Niagara Falls, USA, and all is good.
but if i step into Niagara Falls, Cannuckville, I assume i would be illegal -- or, let's say i was a legal visitor, but i could not work in Canada legally.