A 24-year-old man was shot outside his Brooklyn apartment early Saturday, and died in his mother’s arms as she desperately tried to save his life, according to cops and his family.

Police found O’Neal Mosley with gunshot wounds to his torso and leg outside of the Armstrong Houses on Clifton Place in Bed-Stuy around 3:40 a.m., authorities said.

Earlier, O’Neal told his mom, Daressalaam Mosley, that he was going out to drink with some friends.

A short time later, she heard shots and opened the door — to hear her son saying, “Mom, they shot me,” Mosley told the Post. “I said, ‘Son, don’t die.’”

His mom struggled to stop the bleeding from one of the bullet wounds on his stomach — and even tried to perform CPR, to no avail.

“My son died in my arms,” she cried. “Why my son? Why my son?”

O’Neal, who worked at Target, had been hanging out with the “wrong crowd,” his stepfather, Jeremy Mosley said

“I told him thousands of times… these people don’t [have] jobs. They will turn on you for your money.,” his stepdad said. “They’re [not] your friends if they only show up when you get paid.”

But O’Neal kept hanging with the group because he “needed a thrill,” the step-dad said.

“I think he got robbed,” Mosley added. “He just got paid. He had two- or three thousand, all cash.”

The family wasn’t able to find the money in O’Neal’s room. Police did not yet indicate a motive.

His mother said O’Neal was on the honor roll at the Urban Assembly School of Music and Art in Downtown Brooklyn, and never missed a day of school. His cousin, Vashon Edwards, 21, who lived on Long Island, said “he wasn’t a bad kid at all.”