It is the duty of all peace officers who know, or have reason to suspect, any person of being armed with the intention of committing a riot or affray, or of assaulting, wounding, or killing another person, or of otherwise breaking the peace, to arrest such person immediately, and take such person before the court of general sessions.