Always choose the neighbour with the highest Gross Domestic Product. When left with no neighbours go back to the previous country and follow with the next wealthiest neighbour. Start with the world's largest economy.
Not counting the Gibraltar border, Bahrain bridge border, or dubious India/Sri Lanka border