It took until the first week in May, 31 games to be precise, before the Red Sox went face to face with adversity.

It’s a good sign that the team did not fly back to Boston last night in a puddle of their own tears.

They got swept here by a very good team, one that is playing better than they are despite identical best-in-the-league 20-11 records.

If they’re going to lose, better to lose to the best.

“We’ll be fine — we’ve got a bunch of guys in this clubhouse, this isn’t their first go-round,’’ said starter Jon Lester after his no-decision (six innings, five hits, three runs) in the 4-3 loss to the Texas Rangers that ended on Adrian Beltre’s walkoff RBI single. “Guys have been through the winning streaks and losing streaks and everything in between. I wouldn’t imagine it’s going to be a big thing for us. We played a good clean game today. They had some really good at-bats and squared some balls up at the wrong times. Sometimes you have to tip your hat to the other team when you have games like this and move on to (today).”

And starting tonight, the 13-14 Minnesota Twins visit Fenway Park for four days, followed by three games with the floundering Toronto Blue Jays.

That could be the reason nobody sounded all that distraught as he got ready to fly back home.

“I don’t think this team has gotten ahead of itself in any way, despite their early success we’ve had — we knew this would be a tough series as well as (the Rangers) had pitched all year and the way their team is built but we’ve got to put this behind us and prepare for Minnesota tomorrow,’’ said manager John Farrell.

The pitchers’ duel between Lester and Yu Darvish was a bit of a dud early on. Each pitcher wound up allowing three runs, each on a two-run and solo home run. Darvish lasted an inning longer, and was dominant after David Ross’ blast in the second inning. He retired 17 of the next 20, allowing a pair of walks and a single in that span.