The king who is situated anywhere immediately on the circumference of the conqueror’s territory is termed the enemy. The king who is likewise situated close to the enemy, but separated from the conqueror only by the enemy, is termed the friend (of the conqueror). — Kautilya, Arthasastra
https://en.wikipedia.org/wiki/Arthashastra
Befriend a distant state while attacking a neighbour – Sun_Tzu, Art of War the twenty-third stratagem of thirty-six