If you are playing on an Android emulator like BlueStacks or LDPlayer on your PC, you can use memory scanners like Cheat Engine. This is still a gray area, but it is marginally safer than installing a modified APK on your primary phone because you can sandbox the game.