It is lawful for any person who witnesses a breach of the peace to interfere to prevent the continuance or renewal of it, and to use such force as is reasonably necessary for such prevention and is reasonably proportioned to the danger to be apprehended from such continuance or renewal, and to detain any person who is committing or who is about to join in or to renew the breach of the peace for such time as may be reasonably necessary in order to give the person into the custody of a police officer.