Children should be taught basic firearms safety as soon as they start showing any interest in the firearms kept in the home.
You can certainly wait as long as you choose to teach them bout how to use them but the safety aspects should begin basically as soon as they can begin to grasp the consequences of mishandling them.
Kids are naturally curious and when you combine that with “forbidden fruit syndrome” when firearms are in the home not teaching them early is a recipe for disaster.