An appeal stays all legal proceedings in furtherance of the action appealed from, unless the code enforcement officer certifies to the planning commission after the notice of 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 to life and property. In such case, proceedings shall not be stayed otherwise than by a stay granted by the planning commission or by a restraining order issued by a court of record on application, on notice to the code enforcement officer, and for due cause shown.