you could try to clamp the wallet value.
in the actions set the following
clamp(wallet, minimumvalue, maximumvalue)
i.e. clamp(wallet,0,99999999)
what this will do is stop the wallet from getting smaller than the min val defined and getting larger than max value defined, hope this helps you.