Can you share that LEGAL requirement restricting you from doing side gigs when you are on WP? Including one that restricts you to set up own business if you are on Open Work Permit
Most LMIAs(especially for tech or management) are closed work permits. Even when you work online, you have to prove that you not stealing jobs from Canadians. Think about something like providing design/tech/etc service business which can be easily challenged to be taking jobs away from Canadians - not what I work do, but just how complicated this can get.