Any building erected, constructed, altered, enlarged, converted, moved or used contrary to any of the provisions of this chapter and any use of any land or any building which is conducted, operated or maintained contrary to any of the provisions of this chapter shall be and the same is hereby declared to be unlawful. Any owner, lessee, tenant, occupant, architect or builder, or the agent of any of them, who violates or is accessory to the violation of any provisions of this chapter, as adopted or amended, or who fails to comply with any of the requirements thereof or who erects, constructs, alters, enlarges, converts, moves or uses any building or uses any land in violation of any detailed statement or plan submitted by him and approved under the provisions of this chapter as adopted shall be guilty of a violation which is an offense punishable by a fine as provided herein.