The mayor and council shall have the right to condemn and cause to be remedied or removed any building, structure or existing condition within its corporate limits that is dangerous to life, limb or property, by reasons of decay, dilapidation, or unsanitary condition. Nothing herein contained shall be construed to relieve the municipality of any duty to give owners or interested persons reasonable notice and opportunity to remedy the situation. Nor shall anything herein contained be construed as relieving the municipality of liability to any interested person for damages to person or property taken or destroyed in furtherance of this power. This provision shall not be construed as authorizing the doing of any act or thing contrary to the constitution of this state and the policy of the general laws of this state. The municipality shall have authority to adopt reasonable ordinances and resolutions in conformity with this act and for the purpose of carrying out the provisions of this act and of this section.