Step 1: Learn to recognize the subtle signs of impending doom.
Is your coworker microwaving ramen noodles for the fifth time this morning? It's a sign.
Is the office coffee machine dispensing only lukewarm water? It's another sign.
Is Karen from HR lurking in the break room, eyeing you with a mixture of disdain and desperation? IT'S ALL OF THESE SIGNS!
Don't be that guy who doesn't notice. Learn to read the tea leaves (or in this case, the office politics).