This quote means that in some situations, when faced with a difficult or extreme reality, it could be beneficial to act in a way that could be seen as “insane”. This could mean taking drastic measures, even if it is unexpected or not seen as acceptable by some people. It is also implying that when faced with an overwhelming reality, it can be natural to behave differently or make decisions that some may see as irrational.