(1) Whenever any person is convicted of an offence punishable under this Regulation and the court convicting him is of opinion that such person habitually commits or attempts to commit, or abets the commission of any such offence and that it is necessary to require such person to execute a bond for abstaining from the commission of any such offence, the court may, at the time of passing sentence on such person, order him to execute a bond for a sum proportionate to his means, with or without sureties, for abstaining fkom the commission of such offence during such period, not exceeding three years, as it thinks fit to fix.
(2) The bond shall be in the prescribed form in terms of the provisions of the Code of Crimlnai Procedure, 1973 and shaii in so far as they are applicabie, apply t~ ail matters connected with such bond as if it were a bond to keep the peace ordered to be executed under section 106 of that Code.
(3) If the convictior! is set aside on appeal or otherwise, the bond so executed shall become void.
(4) An order under this section may also be made by an Appellate Court or by the High Court when exercising its power of revision.