What says the law? You will not imprison others! How does it say it? By imprisoning others!
I doubt anyone would seriously suggest that either a) prisons are always a bad idea or b) kidnapping people and locking them up is an acceptable thing for civilians to engage in.