need help with variables

Hello!
How do I prevent a variable to go below zero (negative values)?
I want to make a suspicion system, where if a variable reach 10, it's game over, and you can lower it by doing good deeds;
but i don't want it to get negative values.
How do I do it?
basically in every event where you use a control variable command to reduce the value, add a conditional branch checking the new value and correct it if it goes negative.

I suggest you follow the link to the starting point in my signature, then go to the link of the "variables guide" mentioned there - that is a tutorial game about how to use variables.
Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-variables.105133/