It's bad advice. Office politics is toxic, no matter how you slice it. It's the one thing I'd urge anyone that wants to focus on the best parts of a career to avoid at all costs. It brings out the worst qualities in people (tribalism, favoritism, gossip).