Take a hypothetical country which has a less prosperous country at its border. Many people from the less prosperous country cross the border looking for work and/or to commit crimes (among those crimes, crossing the border illegally).
If it was your country, how would you handle it?