The Idiomatic
“He who lives by the sword shouldn't count your chickens before they are hatched.”