Police say the trend remains dangerous, though.

"This behavior is particularly dangerous due to the risk of serious injury to both participants and residents, significant property damage and the potential for escalation with homeowners," the spokesperson said. "Participants may also face serious legal consequences, including arrest and criminal charges such as vandalism or trespassing."

The spokesperson said the department chose to issue a public warning because the trend has recently regained traction on social media, and officers wanted to proactively outline the risks and consequences for the community.

Ontario police also clarified that the video shared on the department’s social media platforms does not show incidents from within the city.

"The video includes examples of door-kicking incidents circulating online from outside our jurisdiction," the spokesperson said. "None of the clips shown depict incidents that occurred within the City of Ontario; they were used to illustrate the broader nationwide trend."

Recent incidents elsewhere highlight why police say the behavior can quickly turn dangerous. In North Carolina, a juvenile was shot in the leg after a homeowner fired at a vehicle during a late-night ding-dong ditch-style prank, according to police. The homeowner was later arrested on multiple felony charges.

In Houston, an 11-year-old boy was fatally shot while playing a "ding-dong ditch" prank, ringing a doorbell and running away, parents and guardians to have conversations with their children about making safe, responsible decisions and to remind them that online trends are never worth risking personal safety, damaging property or jeopardizing future opportunities," the spokesperson said.

Authorities say residents should report suspicious activity to police immediately.

Fox News Digital’s Julia Bonavita contributed to this report.