cr.p.c. 107 is about Apprehension of breach of peace and tranquility of an area.
This is not a serious offence or an action that will spoil the career
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.
sec 151 cr.p.c. is about Arrest to prevent the commission of cognizable offences.
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.
Since you have not been arrested under this you may not be worried about this incidence too.