Stanford beat New Mexico 58-53