Every police officer may interpose for the purpose of preventing, and shall, to the best of his ability, prevent, the commission of any cognizable offence.
CHAPTER XII PREVENTIVE ACTION OF THE POLICE
Section 168: Police to prevent cognizable offences
The Bharatiya Nagarik Suraksha Sanhita, 2023
Corresponding CrPC provision
As given in the correspondence table of the National Crime Records Bureau (Ministry of Home Affairs). Read both texts before relying on it. NCRB table