associate with the distant countries and attack the near ones / befriend the distant enemy while attacking the enemy near home / keep friendly relations with distant states and attack those nearby
He who gives no thought to far-flung problems soon finds suffering nearby (idiom, from Analects). / Smug concentration on the here and now will lead to future sorrow.