Interesting point. I think the morality probably has to do with the seriousness of the law and the intrinsic morality/immorality of the issue (abortion is ALWAYS wrong, regardless of what the law says), as well as the chances that one will be seriously punished with jail time or something like that, as well as the general attitude of the governing authorities and whether they themselves are even interested in prosecuting offenders.
There is a law in Texas right now stating that anyone walking around with wire-cutters in their back pocket can be arrested and go to jail (a holdover from the days when people used to rustle cattle). Now, it’s an old, old law that they haven’t gotten around to to taking off the books. So, is it immoral for me to carry wire cutters in my pocket? Well, first off, it’s not intrinsically evil to carry wire cutters. Secondly, the government has no interest or intention on prosecuting people who do it and the punishment is not all that severe even if they did. So I would say, all things considered, that it is perfectly moral for me to go around with wire cutters in my pocket
Local gun laws that are more severe than Federal ones? I would be inclined to yield to the local laws first, since those are the people I will be dealing with if I get pulled over with a gun in my car! So in this case, I would think the local laws would prevail if only because I don’t want to go to jail.