Adjoining owners of walls held in common shall not make openings or cavities therein, nor affix nor attach thereto any work or structure, without the consent of the other, or upon the other’s refusal, without having taken all necessary precautions to guard against injury to the rights of the other, to be ascertained by persons skilled in building.