legal ground
"Judicial Interpretation of Criminal Procedure" Article 65 The people's courts, people's procuratorates and public security organs may obtain a guarantor pending trial for a criminal suspect or defendant under any of the following circumstances:
(1) may be sentenced to public surveillance, criminal detention or independent application of supplementary punishment;
(2) may be sentenced to more than fixed-term imprisonment, and obtaining a bail pending trial will not cause social danger;
(3) Women who are seriously ill, unable to take care of themselves, pregnant or nursing babies will not be socially dangerous if they are released on bail pending trial;
(4) If the detention period expires and the case has not yet been settled, it is necessary to obtain a bail pending trial, and the bail pending trial shall be executed by the public security organ.