An appeal stays all legal proceedings in furtherance of the action appealed from, unless the officer from whom the appeal is taken certifies to the board of appeals, after the notice of the appeal shall have been filed with him that, by reason of facts stated in the certificate, a stay would, in his opinion, cause imminent peril of life and property. In such case, proceedings shall not be stayed otherwise than by a restraining order that may be granted by the board of appeals or by a competent court.