Public offenses may be prevented by the intervention of the officers of justice:

(1) By requiring security to keep the peace;

(2) By forming a police in municipalities, and by requiring their attendance in exposed places;

(3) By suppressing riots.

Source: SDC 1939 & Supp 1960, § 34.0102; SL 1992, ch 60, § 2.