To watch one's back / To cover oneself
Describes taking precautions to protect oneself from potential betrayal, criticism, or negative consequences.
In such a competitive environment you have to watch your back.
Keep everything in writing to cover yourself.
—Do you trust him? —Yes, but I watch my back.