Those work situations are the worst. It reminds me of the saying "you can be right, or you can get what you want, but not both".
You can correctly assert your contractor status and correctly point out that you're not legally allowed to do a thing. You're in the right, no doubt, but that doesn't stop an unhappy executive from "letting you go" anyway.