Legal action by enforcement officer. If an unlawful condition or use is found not to have been properly remedied or made to comply with the provisions of this chapter by the expiration of the reasonable time period granted by the enforcement officer, then the enforcement officer is empowered to immediately institute any appropriate action, charge, or proceedings in the proper legal court for the prevention, cessation, or discontinuance of any condition, use, occupancy, or act, in, on, of, or around any building, structure, or tract of land and for the prosecution of any owner, occupant, or offender.