I was thinking more of the saying ‘the enemy of my enemy is my friend.’
I would say that that statement is false. The enemy of your enemy may very well be your enemy as soon as you have both disposed of the first.