It's actually pretty hard to ignite gasoline with cigarettes: https://mythresults.com/special7
1: Yeah I know this is a bad idea itself, but what can you do? She was ~20 and her pre-frontal cortex was still not fully developed.
(The person I replied to didn't make this claim directly, but it's an oft-cited myth that it seemed like they were referencing.)
That would imply that people might retain the ability to form memories past the age of 25, though.