ARLINGTON (AP) — Tampa Bay now has the slimmest of possible leads for the AL’s top wild-card after a big comeback that was thwarted by some bad base running and a big blast from Rougned Odor.

Odor hit a go-ahead, three-run homer in the seventh, after the Rays had two runners picked off in the top of the inning, and the Rangers held on for a 10-9 win Wednesday night to end Tampa Bay’s six-game winning streak.

“We ended some opportunities, some scoring opportunities with probably some over-aggressive baserunning,” said manager Kevin Cash, whose team earlier had runners caught stealing on unusual plays in consecutive innings.

Tampa Bay (87-60) had its lead over Oakland for the top wild-card spot trimmed to a half-game after the A’s won at Houston. The Rays had won 11 of their previous 12 games. Cleveland trails Tampa Bay by one game.

Rougned Odor #12 of the Texas Rangers hits a three-run home run against the Tampa Bay Rays on September 11, 2019 in Arlington, Texas. (credit: Tom Pennington/Getty Images)

After their first seven-run first inning at home in 13 years, the Rangers didn’t score again until Odor’s 25th homer in the seventh. That came off Nick Anderson right after he had replaced Colin Poche (4-5), who had allowed a single and a walk with two outs.

“He shouldn’t have ever been in that situation in the first place. Anytime you get two quick outs like that, you’ve got to finish the inning,” said Poche, the sixth of eight Rays pitchers. “It’s not fair to him to maybe have to rush to warm up to get ready to come and bail me out of a situation that we shouldn’t have been in.”

Matt Duffy’s two-out RBI single in the first gave the Rays a 2-0 lead. They tied the game at 7 on Ji-Man Choi’s three-run homer in the second, and went ahead 8-7 when Duffy hit a sacrifice fly to deep center with the bases loaded in the fourth.

Rookie right-hander Ian Gibaut (1-0), the fifth Texas pitcher, threw two scoreless innings for his first big league victory. Jose Leclerc worked the ninth for his 12th save in 16 chances despite giving up Choi’s second homer of the game that took just over four hours to play.

Duffy was at third base in the second when catcher Jose Trevino came out of his crouch, did a fake pump throw to second and got Duffy in a 2-5-1-6 rundown. After Guillermo Heredia drew a leadoff walk in the third, he was picked off when first baseman Ronald Guzman chased him almost all the way to second base before applying the tag.

“We got some free outs when we needed them, and it obviously helped us win the game,” Rangers manager Chris Woodward said.

Then in the decisive seventh, after consecutive walks to start the inning, Trevino got Choi at second, on a play when the runner was initially called safe before a replay challenge. Gibaut then picked off at first speedy pinch-runner Johnny Davis, who made his big league debut after leading the Mexican League with 54 stolen bases.

Tampa Bay began the second inning with three consecutive doubles before Choi’s 14th homer made it 7-all.

“That was impressive. Really, really encouraging what we did. We got down, and obviously we were frustrated,” Cash said. “We came up short tonight. … Let’s get back on a roll because we’ve been playing good.”

(© Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)