A robbery backfired early yesterday when the victim stabbed and shot one of his assailants and scared off his other two attackers, Prince George's County police said.

The 33-year-old robbery victim, whom police did not identify, was about to enter his car in the District about 3 a.m. when three men, armed with a handgun, approached his car and forced their way inside, police said.

The suspects, who removed the victim's bank card and $161 from his wallet, then drove across the state line to a bank machine at 3731 Branch Ave., police said. While two suspects waited in the parking lot, one man accompanied the robbery victim to the bank machine and tried to grab the cash from the machine.

The victim then pulled out a pocketknife and stabbed one of the assailants, grabbed his gun and shot him. Police said the victim went back to the car, and when the other two assailants saw him, they fled in the car.

The victim fired a shot at the car, hoping to pierce a tire with a bullet, and then the wounded assailant tried grabbing the gun. But the victim shot him again, police said.

The injured suspect, who faces robbery and kidnaping charges, was taken to Southern Maryland Hospital Center, where he was in stable condition. The other two men remained at large.

Prince George's County police said the robbery victim managed to obtain the identities of the two assailants who fled from their wounded companion.