Rangers stop skid with 4-3 walk-off win