Keep in mind the worst of every situation, because whenever that worst situation comes to you, you will not get hurt at all. And if your expected situation comes to you, than your happiness will be more pleasing than normal.
Like if we try to change the time of clock, then clock will always show wrong time to us. So, If we try to get something before or after time we will always get disappointed.