hard borders are very expensive and still let people in, all laws work on a factor of a punishment outweighs the risk
for example no border, illegals are stripped of all assets and made to work as slaves for 20 years then deported, would anyone come?
also africa is churning out so many people because we give them so much aid