“The Romans did. Look how that turned out for them.”
Their immigrants were not illegal. They were brought in as slaves by the conquering army. It did help push the empire over the cliff. The native Romans couldn’t find a job.
The Germanic tribes invaded (”immigrated” in today’s parlance) from the north in huge numbers. The Romans could not stop them at their origin or on the Italian peninsula.