TORONTO -- The Raptors weren't feeling too good about themselves after a fourth-quarter rally gave Toronto its 12th straight win over the Brooklyn Nets.
"We were not sharp whatsoever," Raptors coach Dwane Casey said. "We did not deserve to win that game."
"For us to come out and play like we did, it was terrible," DeRozan said. "We can't have lapses like that."
D'Angelo Russell had 18 points, 13 assists and 11 rebounds for his first career triple-double, but the Nets lost their second straight. Brooklyn, which let a 23-point lead slip away in Wednesday's loss to Charlotte, couldn't maintain a 14-point cushion over the Raptors.
"We're not into moral victories but I did like our compete," coach Kenny Atkinson said.
Russell's triple-double was the first for the Nets since Terrence Williams had one against Chicago on April 9, 2010.
"He had command of that game," Atkinson said of Russell. "I think he took one bad shot the whole night, which he heard about."
Serge Ibaka scored 10 points for the Raptors, who improved to 30-6 at home -- the best record in the NBA.
Brooklyn led 91-84 through three quarters but DeRozan scored eight points in a 9-2 spurt that cut it to 95-94 with 8:30 left.
Lowry gave Toronto its first lead of the second half with four straight free throws, putting the Raptors up 100-99 with 4:50 remaining.
Allen answered with a pair at the line before VanVleet hit a 3-pointer, giving Toronto the lead for good. Lowry followed with a layup and Valanciunas added a pair of free throws.
Carroll's 3 with 34 seconds left cut it to 112-109, and an errant pass by Valanciunas gave the Nets the ball at the Raptors end of the floor, but Brooklyn was called for a five-second violation on the inbounds pass.
"We've got to play hard out of the gate, not be in a dogfight coming down to the last couple of possessions," DeRozan said.
Toronto called a timeout at 8:13 of the third after a 3 by Crabbe capped a 10-1 run that put Brooklyn up 78-67. Casey responded by benching four starters, with only Lowry staying on the floor.
"I don't want to embarrass players like that," Casey said, "but I owe it to the organization, I owe it to our fans to make sure we get guys out there that are going to compete."
Lowry shot 5 for 6 from 3-point range, giving him 215 3s this season and breaking his own team record of 212 set in 2015-16.
Nets: All five starters scored in double figures. ... The Nets have scored 30 or more points in six straight first quarters. ... Dante Cunningham returned after missing three games, the first two because of a concussion. Cunningham was available Wednesday but did not play in Brooklyn's loss to Charlotte.
Things started poorly for the Nets when Russell threw the ball away on the game's opening possession. The play ended with Lowry feeding OG Anunoby for an alley-oop dunk.
ON THE LEVEL
The game was briefly halted in the third quarter because Lowry complained that the rim Toronto was shooting on was uneven. An arena worker mounted a ladder and checked the rim using a spirit level before play resumed. "For some reason, it did seem off," DeRozan said.
Nets: Visit the Cleveland Cavaliers on Sunday. Brooklyn won the first meeting of the season but has lost the past two.
Raptors: Host the Los Angeles Clippers on Sunday. Toronto has won three straight home games in the series.
More NBA basketball: https://apnews.com/tag/NBAbasketball
No regrets as Maker eyes playoff clash against Bucks
A lot has happened to Thon Maker this season. He opens up to ESPN.com.au about his time at Milwaukee, trade to Detroit and a possible playoffs clash against his old team.
Kellerman: Lakers superteam is best way to beat Warriors
Max Kellerman argues that the best way to knock off the Warriors is if players go team up with LeBron James and the Lakers.
Jalen eyes Shaw, Kidd as next Lakers head coach
Jalen Rose has the Lakers missing the playoffs and parting ways with Luke Walton, opening the door for Brian Shaw or Jason Kidd as the next head coach.