(1)If any person establishes, maintains or works a telegraph within [India] in contravention of the provisions of section 4 or otherwise than as permitted by rules made under that section, he shall be punished, if the telegraph is a wireless telegraph, with imprisonment which may extend to three years, or with fine, or with both, and, in any other case, with a fine which may extend to one thousand rupees.