Cizinci, hranice a integrace v dějinách