When things are going well, something will go wrong. / When things just can't get any worse, they will. / Anytime things appear to be going better, you have overlooked something.