The gemera in Shabbos 32a warns that we should be careful not to stand in a place where we are endangering our lives.
The Chazon Ish commented that this is true with with physical dangers, all the more so should we be careful not to place ourselves in a situation where our souls are in danger. ~ Emuna Ubitachon