the answer to this question is Pretrial detention
Pretrial detention refers to a legal process where a person is arrested in the custody before they even got convicted.
In general, the criminals who got pretrial detention are the ones that charged with dangerous/serious crimes.