RE: if some judge decides you violated federal law.
What if the federal law violates the constitution?
Then good luck getting a judge to rule on that and have it stick.