What are the challenges of facilitating legal border crossings while maintaining secure borders?

What are the challenges of facilitating legal border crossings while maintaining secure borders?