Rick Scuteri-USA TODAY Sports

After getting shutout in their first two games in Milwaukee, the Mets faced their biggest challenge of the series when they took on Corbin Burnes and the Brewers on Wednesday in the final game of their three-game series. Francisco Lindor went 3-4 with two RBIs and two doubles, and Pete Alonso hit a pair of two-run home runs off Burnes, but the Brewers’ bats stayed hot as the Mets lost 7-6 on a walk-off home run from Garrett Mitchell to give the Brewers the sweep.

The Mets entered Wednesday’s game on a 20-inning scoreless streak, but they wasted no time getting to Burnes. Starling Marte was hit by a pitch and stole second, and Lindor followed with a double down the left field line to give the Mets their first run of the series and a 1-0 lead.

Luis Guillorme got the start at third base, and he made an instant impact with his glove. He made a terrific diving catch to rob Jace Peterson of a base hit to lead off the bottom of the first inning.

Although things finally broke the Mets way in the first inning, the second inning resembled the Friday and Saturday games. The Mets went down 1-2-3 against Burnes in the top of the inning, then the Brewers exploded for four runs in the bottom of half. After a walk to Brian Anderson and a double by Jesse Winker put runners on second and third with just one out, Owen Miller jumped on a first-pitch changeup and hit an RBI single just out of reach of a diving Lindor to tie the game. Joey Wiemer, the Brewers’ rookie centerfielder, followed with a three-run home run on the next pitch to make it a 4-1 game.

Trailing by three against one of the game’s best pitchers, the Mets’ offense showed signs of life in the third inning. With one out, Marte blooped a double down the right field line, and Lindor followed with his second RBI hit of the day to cut the Brewers’ lead to 4-2. One pitch later, Alonso smoked a first-pitch sinker over the fence in right-center field to even the score at 4-4.

With the score tied again, Peterson had a shaky third inning. He struggled to control his fastball, and found himself in trouble again with runners on first and second for the red-hot Anderson. He fell behind Anderson 3-1, but was able to get the count full before getting Anderson to fly out to Marte in right field. Winker also worked himself into a 3-1 count, and he ripped the 3-1 pitch back up the middle, but Lindor was positioned perfectly and made the catch to get Peterson out of the jam.

Despite struggling with his control, Peterson went back out in the fourth and had a relatively easy inning. His fastball command was still not there, as many of his fastballs were missing up and to the arm side, but he was able to hold the Brewers to just a two-out single.

In the fifth inning, the Mets got the lead back thanks to their two big bats. Lindor doubled down the right field line for his third hit of the day to bring up Alonso with a chance to put the Mets back in front. The Mets’ first baseman worked himself into a 2-2 count before he hit a slider deep over the fence in left-center for his second home run of the afternoon to give the Mets a 6-4 lead. With the two home runs, Alonso tied Carlos Beltrán for sixth on the Mets’ All-Time home run list with 149.

Peterson started the fifth inning to face the left-handed hitting Christian Yelich, but his control issues continued as he issued a five-pitch walk to finish his day.

Peterson’s final line: 4+ IP, 5 H, 5 R, 5 BB, 5 K

Drew Smith came into the game with Yelich on first and a two run lead. Like Peterson, Smith struggled with command of his fastball. With runners on the corners and one out, Smith struck out Anderson after throwing five sliders in the six-pitch at-bat. When Winker worked the count full with two outs, Smith went to his changeup and allowed a game-tying two-run double to tie the game again at 6-6.

The Mets got their first 1-2-3 inning of the day in the seventh from birthday boy John Curtiss. Curtis notched two strikeouts in the seventh, giving the Mets their first clean frame of the day. He stayed in for the eighth inning, and thanks to some good fortune, he got through his second scoreless inning of the day. After William Contreras reached on a seeing-eye single, Anderson hit a ground ball that hit Contreras back foot for the third out of the inning.

After Alonso’s second home run, the Mets didn’t record another hit. The two scoreless innings from Curtiss and a scoreless eighth inning from David Robertson masked the lack of offense in the game’s final frames. In the ninth, the Mets turned to Adam Ottavino for the second straight day. Garrett Mitchell lead off the inning with his third home run of the series to give the Brewers a 7-6 walk-off victory.

Player of the Game: Pete Alonso

Alonso had struggled in the season’s first six games, hitting just .136 to start the year. After switching back to his axe-handle bat and shaving his mustache, he clubbed his second and third home runs of the season. The two home runs against an elite pitcher in Burnes is an encouraging sign that the Mets’ slugger is poised to turn his season around. While the season is still very young, the Mets most likely can’t afford to fall too far behind the Atlanta Braves if they want to overtake them in the NL East.

On Deck

The Mets will play their home opener at Citi Field on Thursday when they take on the Miami Marlins at 1:10 p.m. ET. Tylor Megill will be on the mound for the Mets against Edward Cabrera for the Marlins. The two matched up against each other on Saturday when the Mets defeated the Marlins 6-2 in Miami. SNY will begin their pre-game coverage at 11:30 a.m. ET, and the radio call will be on WCBS 880.