Mexican authorities detained more than 5,200 migrants on Tuesday, as Mexico cracks down on unauthorized transit.