Friends and easy money can actually blind the minds of the young people more especially when there is no one or no one strong enough to guide them the right path to take. There are also times that they are aware of the fact that what they are doing is wrong but excitement and fast pay-off becomes a dominant aspect of their actions. And in most of the instances they are not fully aware of the after effects that they encounter later in life. Here the morals and proper upbringing will play a big role. There are confusions between the wrong and the right and it is easy to drift into the wrong track with such issues when online. However, as you mentioned, the truth can find a way at coming out and those shortcuts can hardly end up in something good.
Upbringing is the key, of course, if you are a good parent, you will always make sure that your children learn what's right and what's wrong, what's good and what's bad for them at their age or the age they are going to enter. This will make things clearl in their minds, and they won't get confused when choosing between the right and the wrong, because they will remember your teachings, and if you don't do any of that, don't even teach anything to your children and think that they will learn everything themselves, there is a high chance that they will choose the wrong path because it's usually easier.
The temptation for growth is so great that it can shake anyone's patience. If you notice, bad things usually come with greater growth, because if you choose the right path, you might have more hurdles in the way of success, but the success you get will have more value and strength compared to the success you get from the shortcuts.
So undoubtedly, only a parent or a good guardian can teach all these things to a kid, or, they might not be able to choose the right path.