Prior to restricting the use of or closing a public beach or portion thereof alleged to be in violation of standards, the health officer or the department as the case may be, shall give reasonable notice of the violation to the owner of, or person or agency in charge of, the beach.