I respect law as a concept, and so approve of obeying the laws -- even for silly laws that I don't actually respect.
For laws of the ``eternal, divine, unchangeable'' nature, such as the Ten Commandments, I think it is the intention of the law that matters.
For secular laws, bylaws and regulations, I'm happy to obey them in letter only, while quite possibly achieving whatever they're meant to prevent. After all, if the legislations doesn't stop people doing what the legislators want to stop them doing, the legislators can always re-write the legislations to say what they meant. Sometimes, this would make them look very silly. For example, I don't pirate software or music; but I very rarely buy them, either, and so do very little to support the companies concerned!