The UK is far from the only country to be caught in a heated debate over its migration system and border security.