There’s a real easy solution, anyone crossing the border illegally - ie, not at a border control point - gets shot in the head.
A minefield is cheaper than a fence