NEW YORK -- Patrick Patterson stole Deron Williams' inbounds pass and made the go-ahead jumper with 6 seconds left, and the Toronto Raptors stopped a five-game winning streak by the Brooklyn Nets for the second time this month with a 104-103 victory Monday night.

Brooklyn had a three-point lead with 17 seconds left behind Paul Pierce in his best game with the Nets, but John Salmons scored on a drive with 12 seconds remaining before Brooklyn took its last timeout to move the ball into the frontcourt.

Patterson stole the pass and fed Kyle Lowry, who got it back to Patterson for his jumper. Pierce was well off on a final attempt.

Lowry finished with 31 points and seven assists for the Raptors, who moved 2 1/2 games ahead of the Nets for the Atlantic Division lead.

Pierce scored 33 points, making seven 3-pointers in a strong bounce-back performance after going just 2 for 10 in his emotional return to Boston on Sunday. He had the Nets in position to win after scoring their last nine points before Toronto stole it.

The stunning turnaround deflated the crowd at Barclays Center for a back-and-forth game that drew a visit from several Seattle Seahawks, who will hold their Super Bowl media day Tuesday at the Nets' last home, the Prudential Center in Newark, N.J. Richard Sherman and Bobby Wagner grabbed a baseline seat in the first half, while Russell Wilson and other players sat above in a private box.

Jonas Valanciunas had 20 points and 13 rebounds for the Raptors, who played without injured leading scorer DeMar DeRozan. Terrence Ross, who tied a franchise record with 51 points and made 10 3-pointers Saturday, had a quiet 10 points on 3-of-9 shooting.

But Toronto got a big boost from Patterson, who ditched the mask he began the game with for a recent broken nose and finished with 15 points off the bench.

Andray Blatche scored 20 points for the Nets, who fell to 10-2 since the new year. The other loss was a 96-80 defeat in Toronto on Jan. 11, a night after they played two overtimes in a victory over Miami.

Lowry scored six straight points before Amir Johnson made a pair of free throws during an 8-0 run that gave Toronto a 94-85 lead with about 8 minutes to play. The Nets answered with nine in a row to tie it on Alan Anderson's jumper, and after Valanciunas' basket, Pierce nailed consecutive 3-pointers to make it 100-96 with 2:37 remaining.

Toronto cut it to one and had a chance for the lead when Lowry stole Williams' pass intended for Pierce, but Williams redeemed himself by drawing an offensive foul on Lowry with 19 seconds left. Pierce then made two free throws, but the Nets couldn't overcome Williams' next giveaway.

Notes: DeRozan had made 125 consecutive starts. ... Ross, DeRozan and the Nets' Mirza Teletovic were all nominated for last week's Eastern Conference player of the week award, which was won by Atlanta's Paul Millsap.