fix if confition of check-swap-percentage

could not compare the $PERCENT and $CRIT, $WARN
so I changed the if condition for that