A person may not use physical force to resist an arrest, whether authorized or unauthorized, which is being effected or attempted by a police officer or peace officer when it would reasonably appear that the latter is a police officer or peace officer.
N.Y. Penal Law § 35.27