rèn​zéi​wéi​zǐ

to treat an enemy as a friend