Section 107 of the Criminal Procedure Code: Apprehension of breech of peace and tranquility of an area.
1) When an Executive Magistrate receives information that any person is likely to commit a breach of the peace or disturb the public tranquility or to do any wrongful act that may probably occasion a breach of’ the peace or disturb the public tranquility and is of opinion that there is sufficient ground for proceeding, he may in the manner hereinafter provided, require such person to show cause why he should not be ordered to execute a bond 1[with or without sureties] for keeping the peace for such period, not exceeding one year, as the Magistrate thinks fit.
(2) Proceeding under this section may be taken before any Executive Magistrate when either the place where the breach of the peace or disturbance is apprehended is within his local jurisdiction or there is within such jurisdiction a person who is likely to commit a breach of the peace or disturb the public tranquility or to do any wrongful act as aforesaid beyond such jurisdiction.
Section 151 of the Criminal Procedure Code: Arrest to prevent the commission of cognizable offences.
(1) A police officer knowing of a design to commit any cognizable offence may arrest, without orders from a magistrate and without a warrant, the person so designing, if it appears to such officer that the commission of the offence cannot be otherwise prevented.
(2) No person arrested under sub-section (1) shall be detained in custody for a period exceeding twenty-four hours from the time of his arrest unless his further detention is required or authorized under any other provisions of this Code or of any other law for the time being in force.