By following the right path ourselves. They learn by example and imitate what they see. If you are talking but not following the walk, they will too. Spend time at the senior centers, go to church with them. They will respond by showing love and care about others and the moral standards that you are showing them. Read to them and they will love to read.
If we do not follow the right path and show them that we do not care about it, they will not care. Encourage their love of learning and their love of people. Do this from the very beginning because if you wait until you think they are old enough, it is too late.
Even then, when they start to school, they will be exposed to children whose parents have not shown the care that you have in raising their children right. Make sure that they know that you will not put up with that behavior from them. It is hard to ensure that they come out following the right path. We can still fail at this but to not attempt it is wrong.