626-a is penal in nature , the violation thereof should have been pronounced not by the police only but by a court of justice , which alone would have had the authority to impose the prescribed penalty , and only after trial and conviction of the accused .