A masked mugger who pistol-whipped a college student outside a hotel near JFK Airport hissed, “Your mother better have some money or I’m going to shoot you!” before gunning down the mom as she ran to save her daughter, law enforcement sources said Friday.

The mom, Andrea Koller — a 53-year-old teacher from Baltimore who has publicly railed against gun violence — was recovering at Jamaica Hospital from a bullet wound to the shoulder. She is expected to survive.

Koller had driven the pair’s car into the parking lot of the Hampton Inn on 135th Avenue in South Ozone Park, and she then walked into the lobby just before the attack at about 8:30 p.m. Thursday, sources said.

Her daughter, Meredith Stifter, was sitting in the car outside the hotel when a man with a ski mask jumped in the driver’s seat and shouted, “Gimme all your money!,” sources said.

The assailant had been captured on surveillance video moments earlier getting out of the passenger seat of a white Jetta with yellow New York plates that was parked behind the victim’s vehicle, sources said.

The cowardly goon beat the young woman, pistol-whipping her in the face before removing four rings she was wearing, the sources said.

But the thug became enraged when Stifter, a behavioral neuroscience major at Lehigh University in Bethlehem, Pa., didn’t have any cash.

That’s when he warned, “Your mother better have some money or I’m going to shoot you!,” sources said.

Koller came running from the hotel in an attempt to stop the thief from pummeling her daughter, who was in town to catch a flight to Cape Town for a semester abroad in South Africa.

The punk wrestled Koller’s purse away from her and shot her when she tried to fight back, police said. She was taken to the hospital, where she was listed in critical condition but had regained consciousness Friday.

The suspect took Koller’s pocketbook and her cellphone — which was later found discarded on the Van Wyck Expressway — before fleeing in the white Jetta, which was driven by another man, sources said.

Ironically, the mom and daughter chose the hotel because they believed it was one of the nicer places to stay near the airport, sources said.

“They just picked the hotel because of convenience,” a law enforcement source said of the mom and her daughter.

Surveillance video (see below) captures the suspects’ Jetta following the victim’s Hyundai, sources said. Police are looking into whether the incident is part of a pattern in the area.

The mom is listed on LinkedIn as an English as a Second Language teacher in Baltimore’s public school system. She attended the University of Rochester and earned a teaching master’s from Notre Dame of Maryland University.

The Baltimore Sun ran a letter to the editor in 2013 by Koller in which she complained about gun violence and argued that background checks do not always prevent guns from being used for crimes.

“Legal weapons are often used for nefarious reasons,” she wrote. “We cannot cling to the naive belief that we are safe merely because someone runs a background check on a gun buyer,” she wrote. “Guns change hands and the simple truth is, more guns in more hands means more gun-based crimes.”

The suspects were still at large as of Friday morning and the investigation was ongoing.

Additional reporting by Bob Fredericks