If velocity is under certain ammount, push backwards

What you want to do here is get the vector length and perform your test on it. the values of the vector components (X,Y and Z) will give you the direction. The actual speed of your character is the vector length, you could use something like that for your test :

You could also use VectorLengthXY if you don’t care about the Z value, but I’ve never used it myself.
I hope this helps =)