Which revision fixes the mistake in parallel structure in the sentence?

Thinking before you act is better than to act impulsively.





Thinking before you act is better than acting impulsively.

Thinking before you act is better than to be impulsive.

Thinking before you act is better than impulsiveness.

Thinking before you act is better than impulsive actions.