None of the provisions of this chapter, except Sections 5-25-20, 5-25-40, and 5-25-160 to 5-25-210, shall apply to towns of less than five thousand inhabitants, nor shall any of the provisions of this chapter, except Sections 5-25-20, 5-25-30, 5-25-40 and 5-25-160 to 5-25-210, apply to municipalities of five thousand or more inhabitants which shall have adopted the Southern Building Code by ordinance.