“to arrest on the spot the foot that stood wavering on a tremendous precipice, to prevent the officers from being taken by surprise while the passions were all inflamed, and to rescue them from plunging themselves into a gulf of civil horror from which there might be no receding.”