Given the right priorities there are instances where violating the rules apparently has God’s blessing. God recognizes some circumstances as exceptions to the rule. When the reason for a rule is trumped by a more important rule, black and white becomes gray.
Read: Joshua 6:4-5
4 Seven priests will walk ahead of the Ark, each carrying a ram’s horn. On the seventh day you are to march around the town seven times, with the priests blowing the horns. 5 When you hear the priests give one long blast on the rams’ horns, have all the people shout as loud as they can. Then the walls of the town will collapse, and the people can charge straight into the town.”