Border agents helped rescue a Mexican national who got stuck on the border wall in California while trying to enter the U.S. illegally, authorities said Wednesday.