Cities may establish, alter and change the channels of watercourses and wall or cover the same within the boundaries of the city and outside the corporate limits to the extent necessary to preserve the watercourse.