An appeal stays all legal proceedings against the applicant which have been instituted in connection with the action appealed, unless the officer whose action is being appealed certifies to the board of zoning appeals that, for reasons stated in the certificate, a stay would, in his opinion, cause imminent peril to life or property. In such cases, proceedings shall only be stayed by a restraining order, which may be granted by either the board of appeals or a competent court on application.