Whether it is lawful to imprison a man?

Objections

Objection 1 : It would seem unlawful to imprison a man. An act which deals with undue matter is evil in its genus, as stated above (FS, Question [18], Article [2]). Now man, having a free-will, is undue matter for imprisonment which is inconsistent with free-will. Therefore it is unlawful to imprison a man.
Objection 2 : Further, human justice should be ruled by Divine justice. Now according to Ecclus. 15:14, "God left man in the hand of his own counsel." Therefore it seems that a man ought not to be coerced by chains or prisons.
Objection 3 : Further, no man should be forcibly prevented except from doing an evil deed; and any man can lawfully prevent another from doing this. If, therefore, it were lawful to imprison a man, in order to restrain him from evil deeds, it would be lawful for anyone to put a man in prison; and this is clearly false. Therefore the same conclusion follows.