You are what you do. You become like the one whom you are following. The unrighteous will not inherit the kingdom of God. Parents want to teach their children to do good while they themselves are wicked. We can only teach our children to follow and to obey Jesus if we ourselves are following Him.
If we ourselves are wicked and we are on our way to hell then we are taking our children to hell with us. The question is: Are we ourselves, obeying Jesus and doing what is pleasing to Him? Or are we taking the next generation to hell with us? Who are we following, Jesus Christ, or our own desires?
Where will we and our children end up?
May Jesus bless you.