I'm gonna do it.
Saying 'I'm gonna do it' is like a kid throwing a tantrum before getting in trouble. It means they're about to do something reckless and probably regret it later.
I'm gonna do it. I'm gonna challenge him to a duel with toothpicks.
I'm gonna do it. I'm gonna eat that whole cake even though it's 2 a. m.
I'm gonna do it. I'm gonna try to ride a bike with no hands.