I know it isn't what you said. But if your idea is to work, it would be required.
Simple economics will prevent most of your gloomy prediction. Pi$$ed off voters will take care of the rest.
Then you might as well not do it at all, then.
Either you're willing to be carded at all times, or you're letting the illegal aliens roam around almost completely unmolested.