my puppy does the same thing. lol. I just tell him NO and he stops. If he keeps doing it I just pick him up to let him chill and put him down and hes good. I steped on him onces
cuz I didnt see him
and since then hes been always watching my feet and doesnt get so close.