I don't know dude, if someone walked up to my car and started breaking the windows and pulling out their handgun, I think I'd get the hell away even if they could produce a badge. Screw the law, I'd rather stay alive and defend my case rather than end up a statistic shot down by an overzealous cop (let's face it - it does happen).
The odds of getting shot by a cop go up drastically if you try to run. If you didn't think they were cops it makes more sense, but if you think they are cops and try to run you are breaking the law. This isn't an, "I don't know...," situation. That's the law. The best you can hope for in that situation is that they understand why you did it and either don' charge you or drop the charges, which they did.