BALTIMORE -- The Boston Red Sox have finally fallen all the way back to the pack, and now they've got only two games left to make it right.
The Red Sox found another way to lose, this time on a broken-bat single and an inside-the-park homer, and their 6-3 defeat against the Baltimore Orioles on Monday night dropped them into a tie in the AL wild-card race.
Boston's 17th loss in 22 games enabled Tampa Bay to pull even in the duel for the league's final playoff spot. The Rays, who beat the New York Yankees 5-2, trailed by nine games after play on Sept. 3.
The Red Sox had either stood atop the AL East or led the wild-card race every day since before play on May 24.
In spite of the epic collapse, Boston can squeeze into the playoffs by winning its last two games. Then, at worst, the Red Sox will face the Rays in a one-game playoff.
"We win every game, we're in the playoffs," right fielder Adrian Gonzalez said. "It's definitely in our hands."
Problem is, the Red Sox haven't won two in a row since August.
"We've backed ourselves about as far as we can go," manager Terry Francona said.
With the score 2-all in the sixth inning, Boston starter Josh Beckett (13-7) allowed four runs in an uprising that began with Vladimir Guerrero becoming the career hits leader among Dominican-born players.
Guerrero broke a tie with Julio Franco by bouncing a single up the middle, his 2,587th career hit. The 36-year-old Guerrero then stole second base, and after a two-out walk to Mark Reynolds, Chris Davis broke his bat hitting a soft liner to right that brought home the go-ahead run.
"I didn't make pitches when I needed to," Beckett said. "I tried to bounce a changeup to Davis there and I leave it up and he serves it to right field."
Robert Andino followed with a deep fly to center that Jacoby Ellsbury had in his glove before crashing into the wall. Andino sprinted around the bases and made it home as the relay throw bounced past catcher Jarrod Saltalamacchia.
Although Dustin Pedroia hit an RBI single in the ninth, the Red Sox stranded two runners and fell to 6-19 in September, the second-worst record in the majors behind the Minnesota Twins. It's also Boston's second worst September, behind a 4-18 mark in 1926, according to STATS LLC.
Jed Lowrie homered for the Red Sox, whose September swoon includes four losses in five games against Baltimore.
Beckett allowed six runs and seven hits in six innings. The right-hander won four straight decisions before losing to the Orioles twice in six days.
"We've got to win games, and we're not going to do it when your starting pitcher gives up six runs," Beckett said.
"It's a relentless lineup, and that's why I'm so proud of our pitchers," Orioles manager Buck Showalter said. "Tommy gave us what he had today. He was barking pretty good there the last inning or so with the groin (injury)."
Boston placed runners on second and third with two outs in the first before Hunter issued an intentional walk to Gonzalez and retired Lowrie on a fly ball. The Red Sox bounced back with an unearned run in the second on a two-out throwing error by rookie left fielder Matt Angle.
Matt Wieters tied it in the bottom half with an opposite-field drive into the left-field seats. Wieters has 21 homers this year after totaling 20 in his first two big league seasons.
Lowrie led off the fourth with his sixth home run, the third against Baltimore. Boston then got runners on the corners with two outs before Nick Markakis made a sliding catch of Carl Crawford's sinking liner to right.
The Orioles drew even at 2 in the fifth on an RBI single by Davis. But with the bases loaded and one out, Beckett retired J.J. Hardy on a popup and struck out Markakis.
Boston C Jason Varitek was a late scratch. He took a ball off his left knee in Sunday's second game against New York. He was replaced by Saltalamacchia, who left in the eighth when struck near the throat by a foul ball. ... Showalter received in-house treatment for an ankle injury early in the game but was back by the second inning. ... Ellsbury's second-inning double extended his hitting streak against Baltimore to 34 games, longest by a Red Sox player against another team in the history of the franchise. ... Francona said he hasn't decided who will start Wednesday's game. It could be 15-game winner Jon Lester on three days' rest. ... Former Oriole Erik Bedard (5-9) will pitch for the Red Sox on Tuesday against rookie Zach Britton (11-10).