Ie. You pay a substantial fee for permission to cross the border. Once the fee is paid, it's unlimited border crossings for life. For example the fee could be $5000 + 5% of your total wealth.
The fee reduces immigration and limits it to the rich, who you probably wanted to allow in anyway. And it costs about what people traffickers currently charge, but the government gets to keep the revenue.