Not to the country you’re visiting. I had to attest to the German government that I would not send any emails or write any reports on my recent work trip there. Else, I needed a work permit.
I am saying that magnitude of the problem will be significantly more if you lie about residency.