From where he stood near second base, Logan Forsythe saw catcher Ryan Hanigan signal for a curveball.

“Huh,” Forsythe thought. “Let’s see how this works.”

On the mound was Jake McGee, who was in his second inning of pumping high-octane fastballs toward Orioles hitters.

At bat was Manny Machado, whose two-run homer in the eighth started a furious Baltimore rally and who was hitting with two outs in the ninth, the count at 2-2 and the Rays ahead by a run.

And now Hanigan wants McGee to dust off his curveball?

“You like that one?” Hanigan asked later. “Busted it out.”

McGee spun a 77-mph curve that plunged through the bottom of the strike zone. Machado swung over the ball for the final strike in the Rays’ 5-4 victory Saturday at Camden Yards.

“That was awesome,” winning pitcher Erik Bedard said. “They’re definitely not seeing that curveball, so it made him look pretty bad.”

McGee didn’t care how it made Machado look. He just knew Machado was on his high-90s fastball, having fouled three of them off during the at-bat. So in a game the Rays almost gave away, McGee decided for the first time this season to throw his curveball to get a swing-and-miss.

“I tried to throw it low over the plate, and I tried to throw it as hard as I can,” McGee said. “It worked out.”

McGee earned his third save of the season and his second during the first three games of this four-game series that ends this afternoon. He did it the hard way, stopping an eighth-inning rally by the Orioles before retiring the side in order in the ninth to get the final four outs.