This is not how it works, most games that take cheating seriously already have a gameserver where most of the gameplay logic happen.
Doing everything server side does prevent cheating.