If any person or persons shall maliciously or wrongfully divert the water or any portion thereof from the waterworks or shall corrupt or render the same impure or shall destroy or injure any canal, aqueduct, public conduit, machinery, or other property used or required for procuring or distributing the water, such person or persons and their aiders and abettors shall forfeit to the mayor and council, to be recovered in an action for damages, such types and amounts of damages which may be recovered according to law and which shall appear on trial to have been sustained.