It is not a solution at all.
Explain how it is not? You cross the border illegally your zapped? Comprende?
I also propose towers at mile intervals and track enemy movement and shoot lasers if they can somehow get past the electric fence. If not the fence idea than at least militarize the damn border. Other 3rd world countries can do it, I’d think we could at least attempt to do it.