If the Celtics were hoping to get the Knicks in the first round, as they did in 2011, they may want to revise their playoff wish list.

Celtics star Paul Pierce said before last night’s tip-off he would like to send a message to the Knicks in their two games this week in case they meet in the playoffs. The message: It won’t be easy.

But last night, it was easy. J.R. Smith barnstormed Boston, combining with Carmelo Anthony for 61 points as the Knicks captured their fifth straight game by walloping the Celtics, 100-85, at a subdued TD North Garden. The Knicks posted a 2-0 regular-season record in Beantown for the first time since 2003-04.

Smith finished with a team-high 32 points in 35 minutes, scoring 21 in the first half. Anthony added 29 on 10-of-30 shooting.

Anthony lost to the Celtics in a four-game sweep in 2011, and the teams are on a collision course to meet in Round 1 in a 2 vs. 7 matchup.

“We want to beat them,’’ Anthony said in the gleeful visitor’s locker room. “Let’s be quite frank about this. We always want to beat Boston. New York in anything always wants to beat Boston, so when you do it, it’s a great feeling.

“It was a great road win for us, especially in this arena. Knowing how hostile it can get here, knowing how well they play here in front of their fans. It says a lot about our team at this moment.’’

It would have been sweeter had Kevin Garnett played, but the Celtics have chosen to rest Garnett for the next two weeks.

The Knicks moved 2 1/2 games ahead of the idle Nets in the Atlantic Division race and all but extinguished any chance of the Celtics making a late run. The five-time defending division champs are 7 1/2 games behind.

“We’re at a great pace and in a great position,’’ Smith said.