A man was walking in the park when a fountain sprayed out to stop him.