. . "ditch or flume in such manner as to afford security for life and property; but" . .