The brain finishes maturing around 25
The area that handles planning and impulse control, the prefrontal cortex, keeps developing until the mid-twenties. Youthful mistakes are part of the building process.
Jay Giedd et al.Brain development imaging studies