stays all legal proceedings in furtherance of the action appealed from, unless the zoning enforcement officer certifies to the board of commissioners that, by reason of facts stated in the certification, a stay would, in his opinion, cause imminent peril to life and property. In such case, proceedings shall not be stayed except by a restraining order which may be granted by said board or by a court of competent jurisdiction, on application, on notice to the official from whom the appeal is taken, and on due cause shown.