Max Muncy’s game-ending RBI single in the ninth inning gave the Los Angeles Dodgers a 3-2 victory over the visiting Detroit Tigers on Tuesday to extend their winning streak to five games while closing in on a top-two seed in the National League playoffs.Mookie Betts singled with one out in the ninth inning against Tigers right-hander Alex Lange (7-5), went to second when Will Smith was hit by a pitch with two outs and scored just ahead of the throw home after Muncy’s single.David Peralta had an RBI double in the eighth inning to tie the score 2-2 and J.D. Martinez hit a home run in the fourth en route to reaching base four times.Dodgers right-hander Ryan Pepiot entered in the second inning and gave up one run on five hits over six innings. Alex Vesia (2-5) pitched a scoreless ninth inning to earn the win. The Dodgers improved to 93-57 and are 8 1/2 games ahead of Milwaukee for No. 2 spot in the NL playoffs. Atlanta leads Los Angeles by 3 1/2 games.Spencer Torkelson and Parker Meadows hit home runs for the Tigers (70-81), while Miguel Cabrera had a seventh-inning single for the 3,167th hit of his career to move into sole possession of 17th on the all-time list.Detroit lost the first two games of the series after they entered with 11 victories in their previous 16 games. The Tigers are 3-2 halfway through a 10-game California road trip.