Stockdale Paradox:
The optimal state of mind is neither optimism, which leaves you unprepared for adversity, nor pessimism, which destroys motivation, but optimistic pessimism: by preparing for the worst outcomes, you increase confidence in dealing with any outcome, and thus, you increase hope.