As a parent, one of things you pay close attention to is what your child does. When you take interest in what they are up to, you are able to decode what they are doing and this gives you a chance to guide them accordingly.
More often than not, you will find that when children stray they are probably keeping bad company, you either didn’t take interest in finding more about these friendships or warned them against.