Penal Code 69 PC is the California statute that makes it a crime to either:
try to prevent an executive officer from performing their duties, or
resist an executive officer in the performance of their duties.
Under a prevention offense, the prosecutor must prove two things to successfully convict you under this code section. These are:
you willfully and unlawfully used violence, or a threat of violence, to try to prevent an officer from performing a lawful duty, and
when you acted, you did so intentionally.
Under the resistance offense, the prosecutor must prove three things to successfully convict you. These are:
you unlawfully used force or violence to resist an executive officer,
when you acted, the officer was performing a lawful duty, and
when you acted, you knew the officer was performing a duty.