If the law is a bad law, there is always the contingent right to take action that you would not otherwise take.
The rule of law should be upheld by all political parties. They should neither advise others to break the law, nor encourage others to do so even when they strongly disagree with the legislation put forward by the government of the day.