Amnesty and legalization is not going to stop illegal immigration, it will encourage it en masse.
We have to make the legal immigration system based on 1) Merit and 2) Skills. If people from foreign countries have skills we are severely lacking in (some STEM fields, medical professionals, engineers) we give them favorable status regardless of their country of origin. There's no need to let people immigrate who have no usable skills or skills that we already have a supply glut in.
Very astute points. Immigration is great for America imo, but the people coming in need to be vetted, they need to have skills that are in shortage, they need to be able to speak English to assimilate to society, among other factors.