Sanitize logic that prevents editing in readOnly ranges

It was really quite misguided before.