I have no clue what people envision when they considering a secure border. It’s impossible.
Heavily militarized borders with everything technically possible defending them, regardless of inhumane it was/is, yet didn't stop people from attempting to cross and actually crossing.
Even the great wall of China isn't a good example because afaik that wasn't built to stop immigration, it was built to stop raiding parties.