Maintain PR and H1B

I would like to know how can one can look forward to applying for his/her citizenship after his PR clock starts while also maintaining his h1b status in parallel. I know you have to stay 3yrs in Canada before you apply for citizenship but what if the person has a stable job on h1b in the USA and their employer is willing to let them work remote from Canada? I also know this will void the h1b rule but is there any way to make it work by travelling often back and forth between Canada and USA and get the best the of both worlds?