We could militarize our border like many other countries have.

They have actual armed police controlling the border.

The curse of the Berlin wall is that it was to keep people IN.

A 'no mans' land at the border backed up with weapons would bring illegal entry to a total halt.

You are free to exit but not enter.