Independently of religion, this is horrible policy. Not every country has rational sane laws, not every goverment wants their populace to be free. If you'd be given the option in Hitler's Germany to join the army or die, would you comply or try to fight?
The rational thing is to figure out if your beliefs are reasonable, then adjust them if necessary, and then to act according to them, law or not. The source of your beliefs aren't half as important as what you do to figure out if they are sane and have a positive impact or not.