SACRAMENTO, Calif. (AP) — Several lawmakers and the family of a 22-year-old unarmed black man who was fatally shot by police are proposing Tuesday that California become the first state to significantly restrict when officers can open fire.

The legislation would change the standard from using “reasonable force” to “necessary force.”

That means officers would be allowed to shoot only if “there were no other reasonable alternatives to the use of deadly force” to prevent imminent serious injury or death, said Lizzie Buchen, legislative advocate for the American Civil Liberties Union, which is among the groups behind the measure.

The legislation would change the standard from using “reasonable force” to “necessary force.”

The goal is to encourage officers to try to defuse confrontations or use less deadly weapons, said Terry Schanz, a spokesman for Democratic Assemblyman Kevin McCarty of Sacramento, who is co-authoring the legislation with Assemblywoman Shirley Weber, a San Diego Democrat.

Some in law enforcement called the proposal “irresponsible and unworkable.”

Officers already use deadly force only when necessary and are taught to try to defuse dangerous situations first when possible, said Ed Obayashi, a Plumas County sheriff’s deputy and special prosecutor who trains officers and testifies in court on police use of force.

Tinkering with legal protections for police could make it more difficult to hire officers and is dangerous because they may hesitate when confronting an armed suspect, threatening themselves and bystanders, Obayashi said.

Leslie McGill, executive director of the California Police Chiefs Association, and Cory Salzillo, a lobbyist for the California State Sheriffs’ Association, said they had not seen the proposal and could not comment.

It comes after two Sacramento officers killed Stephon Clark last month, prompting a series of protests. They chased Clark, who was suspected of breaking into cars, into his grandparents’ backyard and said they opened fire because they thought he had a gun. Investigators found only a cellphone.

READ MORE: What we learned from an independent autopsy into Stephon Clark’s death

Sacramento Police Chief Daniel Hahn told The Associated Press last week that he is open to examining the department’s policies on pursuing suspects and other practices but warned that changes could carry consequences.

Sgt. Vance Chandler, a department spokesman, said Tuesday that Hahn was reluctant to comment on pending legislation but that “law enforcement is changing” and must be open to ways of improving.

California’s current standard makes it rare for officers to be charged after a shooting and rarer still for them to be convicted. Frequently it’s because of the doctrine of “reasonable fear.” If prosecutors or jurors believe that officers have a reason to fear for their safety, they can use deadly force.

That standard “gives very broad discretion,” said Buchen of the ACLU. “It doesn’t mean there has to have been a threat. If a reasonable officer could have perceived a threat and responded with deadly force, then it’s legal.”

The tougher proposed standard could require officers to delay confronting a suspect they fear may be armed until backup arrives or force police to give explicit verbal warnings that suspects will be killed unless they drop the weapon, Buchen said.

Officers also might have to use de-escalation techniques or try non-lethal weapons before shooting.

The proposal would open officers who don’t follow the stricter rules to discipline or firing, sometimes even criminal charges.

Officers fatally shot 162 people in California last year, only half of whom had guns, the lawmakers said.

The ACLU says California would be the first state to adopt such a standard, though some other law enforcement agencies, including San Francisco, have similar or more restrictive rules.

Cities’ strict standards are generally for situations where there is time to de-escalate volatile situations, such as with people who are mentally unstable, Obayashi said. That wasn’t the case with Clark, he said, when the officers say they suddenly confronted a man they mistakenly thought was pointing a gun.

The lawmakers and ACLU point to a 2016 study by policy analyst and racial justice advocate Samuel Sinyangwe that analyzed use-of-force policies by major U.S. police departments. He found that officers working under more restrictive policies are less likely to kill and less likely to be killed or assaulted.

Officers fatally shot 162 people in California last year, only half of whom had guns, the lawmakers said.

They cited studies showing that black people are far more likely than white people to die in police shootings and that California has five of the nation’s 15 police departments with the highest per capita rates of killings by officers: Bakersfield, Stockton, Long Beach, Santa Ana and San Bernardino.