SAN DIEGO -- A distraught man who tried to sacrifice his 8-year-old son in city-run Mount Hope Cemetery over the weekend was in custody, and the boy was expected to be OK, thanks to a young couple who intervened and a security guard who tackled the man.

Joseph Ramirez, 30, was slashing the boy with a piece of broken glass from a candle in the cemetery at 3751 Market St. about 4:30 p.m. Saturday when Jaymisha Pires and Corey Granberry, both 21, saw what was happening.

"My motherly instincts kicked in when I saw him hurting that little boy," Pires, who has children, 2 and 6 years old, told The San Diego Union- Tribune. "It was a blur. I just wanted him to stop."

When Pires confronted Ramirez, he kept saying, "We're going to Jesus,'' she told the newspaper.

Eventually, Ramirez pushed the boy aside and ran -- only to be tackled by cemetery security guard Dana Fontenot.

Granberry wrapped up the boy's slashed arm with a T-shirt and tried to comfort Ramirez's other two children, one of them a toddler. The boy with cut arms was taken to Rady's Children's Hospital to be treated.

Ramirez, who had slashed his own forearms, was taken to a hospital to be treated and expected to be booked on suspicion of child abuse and assault with a deadly weapon, authorities said.

Ramirez told police his dead grandmother told him to sacrifice his 8- year-old son, San Diego police Officer David Stafford said.