This isn’t true, they encourage you to run source builds instead of the editor and you are free to modify the engine for your projects as needed. In fact they’re even generous enough to allow you to post up to 30 lines of engine code in public forums.
https://www.unrealengine.com/en-US/eula/publishing