Bail and the law relating to it
Bail is the rule but not its refusal
Bail is the rule and refusal of bail is the exception. When the bail is refused the personal liberty of the citizen is deprived. Such deprivation can be done only by following the principles and procedures known to law.
That means refusal of bail must be done by following due process of law. Bail can be granted at any stage of the trial.