It isn't unheard of for a judge to knowingly issue an order they know full well cannot be enforced but they also know that it takes time and money for lawyers to file appeals out the wazoo to find that fact out.
Just do what you want, completely and utterly disobey.