Section 7. When action may not be taken under section 6.

7. No order shall be made under the provision of section 6—

(i) until the time allowed by law for appeal against the sentence or order under which the prisoner is committed to or confined in prison, has expired or, if an appeal has been preferred or a revision is pending until such appeal or revision has been disposed of; or

(ii) if an application made on appeal or otherwise to have the sentence altered into an order of detention, has been rejected by an Appellate Court or the High Court; or

(iii) in the case of any person who has been sent to a Reformatory School in accordance with the provisions of the Reformatory Schools Act, 1897; or

(iv) if the unexpired term of the imprisonment to which the prisoner was sentenced, or if the period for which security was required from him is less than two years; or

(v) unless the provisions of sub-section (3) of section 5 have been complied with.