Politicians who have stirred up resentment against globalisation – and the voters who have embraced the move – should ask themselves what they would do without foreign investment in their country, or if a decline in bilateral ties crippled the economy