ATLANTA — It was a rough night for the Lakers — and LeBron James.

Rookie Trae Young, who was pumped to face James, had 22 points and 14 assists, John Collins also scored 22 points despite foul trouble, and the Atlanta Hawks defeated James and the Los Angeles Lakers 117-113 on Tuesday night.

The Hawks snapped a three-game losing streak despite a triple-double from James, who had 28 points, 16 assists and 11 rebounds.

“I try to live in big moments,” Young said. “I feel like I belong here. He’s one of the best players of all time. But when I’m out on the court, I’m trying to compete and get a win.”

As for James — who was serenaded with “Kobe’s better” chants from the sellout crowd of 16,824 — it was a frustrating loss as he stormed to the locker room as soon as the horn sounded. The Lakers dropped 2½ games behind Sacramento for the final playoff spot in the Western Conference.

“We either make it or we don’t make it,” said James, who also was cheered loudly by a hefty contingent of Lakers fans. “Don’t worry about it.

“Some guys have never played a playoff game before,” James added. “You can’t teach them that. It’s very important to understand how important every game is, no matter who you’re playing or where you are.”

Young matched his season high by playing 38 minutes, taking on a greater burden after the Hawks bought out the contract of his veteran backup, Jeremy Lin. With Jaylen Adams sidelined by a sprained right ankle, Young was the only true point guard on the roster.

“It was definitely different,” Young said. Asked if he was tired, he said with a smile, “A little bit.”

Both teams struggled mightily in the final quarter after an up-and-down track meet over the first three periods. The Hawks made just 5 of 19 shots over the final 12 minutes; the Lakers weren’t much better, hitting 6 of 22. The teams combined to go 3 of 18 from 3-point range.

The Hawks scored just seven points in the final 6:33 but managed to hold on. Taurean Prince delivered a key 3-pointer with 1:48 remaining, and Young darted past James for a lay-in and a foul that thwarted any hope of a Lakers comeback.

It sure didn’t start out that way.

Atlanta tied a franchise record for 3-pointers in a quarter, going 10 of 17 in the opening period for a 38-32 lead. The Lakers fought back to take a 69-65 edge at the half, but Atlanta pulled ahead for good to lead 100-95 going to the fourth.

The Lakers had a chance after an Atlanta turnover led to a driving basket by James, cutting the Hawks’ lead to 116-113. But after desperately trying to come up with a steal, Los Angeles was forced to foul Kevin Huerter with 4.3 seconds left. He made the second of two free throws to seal the victory.