Houston’s George Springer heads home after hitting a tie-breaking, two-run home run in the seventh inning. (Scott Halleran/Getty Images)

Believe it or not, this might not be the best time to play the Houston Astros.

Yes, they still have the worst record in the American League, but bad teams with surging confidence are still dangerous, especially when an opponent leaves a game dangling within reach.

That’s what happened on Thursday night, when the Orioles gave the Astros hope until Houston’s rookie phenom George Springer could give his team the big hit it needed.

After Orioles right-hander Ubaldo Jimenez grinded out a quality start, reliever Preston Guilmet allowed a tie-breaking, two-run homer in the seventh inning, sending the Orioles to a 3-1 loss in front of 22,884 at Minute Maid Park.

Springer’s blast was his seventh homer in his last seven games, leading the Astros to their sixth straight win.

With the loss, the Orioles (26-26) have now lost three straight and sit at .500 for the first time since April 27.

Since the teams met at Camden Yards earlier this month, they have been going in opposite directions. The Orioles are 6-11 and the Astros are 11-6.

On Thursday, the Astros (23-32) were hitless in 12 at-bats with runners in scoring position before Springer’s homer.

Perhaps even more frustrating, the Orioles managed just one run off Houston starter Brad Peacock, who entered the game with a 5.20 ERA and was scratched from his last start with right forearm soreness.

Peacock held the Orioles to six hits over six innings, recording eight strikeouts and no walks.

Jimenez entered the night with a strong resume against the Astros — he owned a 4-0 record and 2.32 ERA in eight career starts against Houston — and while the Orioles right-hander appeared unspectacular for most of the night, he turned in one of his grittiest starts of the season.

Jimenez battled with his pitch-count throughout after a 25-pitch second inning, but still managed to go six innings and allowed just one run — which scored on a wild pitch — for his fourth quality start in his last six outings.

Jimenez, who left the game after throwing 112 pitches, yielded just three hits and struck out eight but also walked three.

The Orioles’ only run came in the fourth inning, when designated hitter Nelson Cruz drove in his 49th run of the season with a two-out single off Peacock.

Cruz’s run-scoring hit came after hot-hitting Steve Pearce, who was moved up to the No. 2 spot in the order, led off the inning with a double down the left field line.

With two games remaining in the month, Cruz’s RBI total is just one shy of Chris Davis’s club record for most at the end of May set last season.

The Astros scored the first run of the game when Jimenez uncorked a wild pitch with the bases loaded in the second inning, allowing Jason Castro to score from third on a close play at the plate.

The play was so close — Jimenez hustled home and made a tag on Castro right when he slid into the plate — that the Orioles challenged the call.

But after a lengthy review of 4 minutes 25 seconds, the play stood, meaning there wasn’t conclusive evidence to overturn the call.

Jimenez, who rarely gets riled up, pleaded with home plate umpire Mike Muchlinski. Jimenez argued that he tagged Castro on his left foot before he touched home plate, even showing the umpire a mark on his glove.

But Jimenez limited the damage from there, stranding seven base runners. The Astros were 0 for 11 with runners in scoring position against Jimenez.

Guilmet entered the game having not allowed a hit in six scoreless innings this season before allowing a one-out single to Jose Altuve in the seventh.

Altuve stole second, his second of the night and his AL-leading 19th this season, and Springer lined a 3-2 slider over the out-of-town scoreboard in left field to give Houston the game-winning hit.

— Baltimore Sun