Deletion of Loop scope

When accidentally (Or intentionally) changing the loop target all of the previously lines written in the scope of the loop are deleted… is this intentional? can we have warning message? or maybe just disable the “inappropriate” lines? Or is there a better workflow suggestion?

Yes this is intentional because I think too many warnings can slow the creation of automation too much
but maybe a warning message with a “Don’t show this message again” is the right way.