No, CheatEngine 5.5 is not illegal. It is freeware and can be used to edit single-player games, such as enabling infinite life or other changes. It should be used responsibly and only where you have the right to modify the software. You can download it from www.cheatengine.org/download.php.