For example: corner to corner crossing is a normal law for pedestrians. Technically, you should always yield the right of way for pedestrians to cross in this manner. Say you are on a two-lane main road through town, and there is tons of traffic. Do you stop at every single corner to let one person cross?
The law says yes. Everyone waiting on you is going to say HELL NO! The people that stop at every corner think they are god's angel doing the right thing, but really they are being a massive sh*t head.
That's just one example of the fuzzy line between breaking the law for the common good or following the law to a tee to the detriment of everyone on the road.
Obviously, the best solution is just better city planning so that pedestrians rarely have to interact with traffic. When they do have to interact with traffic, it should be limited and explicit ( red lights, big marked crosswalks, etc).