Is there any way to make a variable not change its value for anything in the world?

You should read this, also, even if you set it client sided, they can easily set it to what they want. Its impossible to stop an exploiter.