The Idiomatic
“The enemy of my enemy shouldn't count your chickens before they are hatched.”