"If a law is unjust, a man is not only right to disobey it, he is obligated to"- Thomas Jefferson
Emphasis on "unjust", and not just something you think shouldn’t apply to you. And always with the understanding that any consequences of disobeying the law are expected, accepted, and strictly your problem.
Depends on the law. Excessive property taxes are unjust but I have an obligation to keep my family in our home so I obey the law and pay them.
Obey the law, then fight it, in court.