The Los Angeles Lakers secured a spot in the In-Season Tournament semifinals on Tuesday with a 106-103 win over the Phoenix Suns, as LeBron James scored 15 of his 31 points in the fourth quarter.

James had 15 of the Lakers’ first 19 points in the final quarter and got the assists on his teammates’ other two baskets as Los Angeles pulled ahead.

Anthony Davis tallied 27 points and 15 rebounds and Austin Reaves added 20 points, including a key 3-pointer with 15 seconds left to extend the Lakers’ lead to 105-101.

Los Angeles advances to face New Orleans on Thursday in Las Vegas.

Kevin Durant scored 31 points for the Suns but came up short on a potential tying 3-pointer at the buzzer.

Bucks handle Knicks to reach semifinals

Giannis Antetokounmpo had 35 points and 10 assists to help the Milwaukee Bucks book a spot in the semifinals of the NBA’s inaugural In-Season Tournament with a 146-122 victory over the New York Knicks.

Damian Lillard added 28 points and Malik Beasley had 18 for the Bucks, who improved to 5-0 in tournament play with their ninth consecutive home win.

They set a season high in scoring, shooting 60.5 percent (23 of 38) from 3-point range and 60.4 percent overall to set up a matchup with Indiana in Las Vegas on Thursday.

Julius Randle scored a season-high 41 points on 14-of-19 shooting, and Jalen Brunson had 24 points, but the Knicks had a three-game win streak stopped.