What is the meaning of [Keep your friends close, and your enemies closer]

MEANING If someone is your enemy, treat them like a friend so you can be ready if they ever try to betray you
EXAMPLE “We don’t trust each other, but we have to be nice to each other because we work for the same company. I’m worried about him stealing my promotion, so I’m going to keep being nice to him. Keep your friends close, but your enemies closer, and all that.”