The use of any portion of a garage or accessory building for dwelling or sleeping purposes in any zoning district is prohibited. Basements shall not be used for sleeping purposes, unless adequate ingress and egress is provided per the requirements of the Village Building Code and other applicable regulations. In no case, shall any living space located in a basement be counted toward the required floor area requirement for the district in which it is located.