225. Whoever intentionally offers any resistance or illegal obstruction to the lawful apprehension of any other person for an offence, or rescues or attempts to rescue any other person from an offence—

(a) shall be punished with imprisonment for a term which may extend to two years or with fine or with both;

(b) if the person to be apprehended, or the person rescued, or attempted to be rescued, is charged with or liable to be apprehended for an offence punishable with imprisonment for a term which may extend to twenty years, shall be punished with imprisonment for a term which may extend to three years, and shall also be liable to fine;

(c) if the person to be apprehended or rescued, or attempted to be rescued, is charged with or liable to be apprehended for an offence punishable with death, shall be punished with imprisonment for a term which may extend to seven years, and shall also be liable to fine;

(d) if the person to be apprehended or rescued, or attempted to be rescued, is liable, under the sentence of a Court, or by virtue of a commutation of such a sentence, to imprisonment for a term of ten years or upwards, shall be punished with imprisonment for a term which may extend to seven years, and shall also be liable to fine; or

(e) if the person to be apprehended or rescued, or attempted to be rescued, is under sentence of death, shall be punished with imprisonment for a term which may extend to twenty years, and shall also be liable to fine.