My question involves criminal law for the state of: California
So yesterday I was at a local indoor swapmeet and I was inside a stand looking at band shirts when I hear something break and all of a sudden there's people screaming he has a gun, when I look into the walkway I see a guy at a jewelry stand across from where I am breaking the displays and grabbing jewelry, theres always security guards standing there cus it's right by the door and they were just standing there like in shock, the man robbing had what looked like a gun in one of his hands, I wasn't scared of the situation that was going on mostly my adrenaline was pumping like I wanted to do something, I edc a pocket knife and this is where my question comes from, what would happen to me if I would have attacked the man with my knife and seriously hurt him or neutralize him?
I know someones gonna probably say don't b a hero let the police handle the situation

