Some files in Emacs should not be modified, for example:
- an .el.gz library file which is expected to behave "properly"
- an external extension, which will be overwritten on update
Anyway, there are ways to change default behaviours but not through changing of the source code bundled with Emacs or it's packages.
What are the best ways to prevent oneself (or at least warn) from editing those files.