its really quite simple.
Follow the rules (regulations, sop et. al) and be safe...
BUT
if the rules don't work and you aren't safe, do what you think is best to the extent neccessary to keep everyone safe.
we call it: the emergency authority of the pilot in command