We could easily put gates every few miles to let the cattle through, with a manned guard post so nobody can open them up for the illegals.
Good thought but that’s not how cattle work. There are ways around this problem. Especially if the rest of the border is walled off. It could be monitored with drones, BP, cameras all kinds of clever things