We all do stupid things. Doing stupid things doesn’t necessarily make you a stupid person. Stupidity, as defined by the OED, is ‘behaviour that shows a lack of good sense or judgement’. The key to that definition is the word behaviour. Stupidity isn’t the act, it’s the behaviour.