A creep tried to lure two kids into his SUV in front of an Upper West Side elementary school with the promise of candy Tuesday.

“It has been reported to us that a man in a black SUV was in front of our school this morning. He . . . approached two children, telling them he had candy . . . The children did not respond to the man,” Suzan M. Federici, principal of PS 87, wrote to parents in an email.

The NYPD said a formal complaint was not filed by the school, but the principal did alert NYPD School Safety.

“The teachers are aware of the incident and will be reminding their children about safety and strangers . . . I ask that you be diligent when you are walking the neighborhood with your children,” said the email.

Parents were angry the man was able to get close to the kids.

“If anyone tried to take one of my kids, they’d be sorry they were ever born,” said Jonathan Sanborn, 48, a musician whose 3-year-old attends preschool at PS 87.

“You’re immediately horrified because that’s a scary thing,” said his wife, Rose Sandborn, 42. “I think the school jumped on it immediately. It’s a great school.”