Martin Perez keeps game close, Rangers win 7-6