Whoever obstructs the Director, the Controller or any legal metrology officer with intent to prevent or deter the Director or the Controller or any legal metrology officer from exercising his powers or discharging his functions, or in consequence of anything done or attempted to be done by the Director or the Controller or any legal metrology officer in the lawful exercise of his powers or discharge of his functions as such, or whoever obstructs the entry of the Director or the Controller or any legal metrology officer into any premises for inspection and verification of any weight or measure or any document or record relating thereto or the net contents of any packaged commodity or for any other purpose shall be punished with imprisonment for a term which may extend to two years and for the second or subsequent offence, with imprisonment for a term which may extend to five years.