(1) to the inspection, maintenance or repair of any vessel moored within the small boat harbor, or of any equipment attached thereto, (2) to the inspection, maintenance, repair, construction, or improvement of port and harbor facilities, or; (3) to a search or other activities carried out by or at the direction of law enforcement or emergency personnel.