The line between the two can shift, depending upon perspective
Although there are rules (for light to medium copyediting) and principles (for line or developmental editing) to be followed, editing is more art than science. The deeper into a piece an editor goes, the more interpretative the work.