The smartest and most talented can still come, there are specific visas and pathways for them.
Also, let's not be as childish as assuming that policies that were good 100+ years ago for a country should be good ad vitam eternam. Countries change, their interests change, therefore their policies should change accordingly.