(2) Whoever molests, hinders, opposes, or obstructs any magistrate, or other peace officer or the Accountant General or a revenue officer, or a duly authorised person, or one acting in aid or assistance of any of the aforesaid, in the execution of his or her duty under the section last aforesaid or of this Act, commits an offence.