Detroit won its second straight but remained five games out of a playoff position in the Eastern Conference.
The Pistons trailed by eight to start the fourth quarter, and then rallied a 97-95 lead on the Wilcox basket. Carmelo Anthony next missed a layup for the Knicks and Wilcox seized another rebound.
Two free throws by Will Bynum with 9 seconds to play completed the scoring.
Tayshaun Prince led Detroit with 16 points, Charlie Villanueva had 14 and Wilcox scored 13 points to go with 12 rebounds.
New York got 20 points and 12 boards from Amare Stoudemire. Anthony made only 2-of-12 from the field and scored a mere six points.
Wisconsin business offering 'therapeutic cuddling' forced to close
Reindeer recovered after escaping from Santa during lighting ceremony