The relationship between border towns is very tight. You would ruin the entire southern economy if you banned cross-border travel entirely.
Back in the day before Mexico required passports to enter, many people lived in Tijuana and worked in San Diego. I'm sure this still happens today, and of course, you have to consider that many migrants work in US farms, etc.