No building to be used as a dwelling shall be constructed or altered in the rear of a building situated on the same lot, nor shall any building be constructed in front of or moved to the front of a dwelling situated on the same lot. These provisions shall not be construed, however, as preventing the erection, alteration and maintenance of dwelling quarters in connection with an accessory building upon the rear of the lot when the persons occupying such quarters are employed in domestic service upon the premises.