19. A police-officer may restrain or remove any person resisting or refusing or omitting to conform to any direction referred to in section 18 and may either take such person before a Magistrate or, in trivial cases, release him when the occasion is past.