An appeal stays all proceedings in furtherance of the action appealed from, unless the zoning enforcement officer from whom the appeal is taken certifies to the mayor and council after the notice of appeal is filed with him, that by reason of facts stated in the certificate, a stay would, in his opinion, cause imminent peril to life and property. In such case proceedings shall not be stayed other than by a restraining order which may be granted by the mayor and council or by a court of record on application, on notice to the zoning enforcement officer from whom the appeal is taken and on due cause shown.