Either run or have a longer knife, preferably a sword or spear. Even a gun may not help you in close range: