proverb

False friends are worse than open enemies.

friendship

suggests that

It's better to know who are your enemies than trust someone who pretends to be a friend but is capable of causing you pain or injury when you don't expect it.

Related

same as

Also

Better an open enemy than a false friend.