It can be our genes or upbringing.
Genes are not within our control. But upbringing is within our control.
It is the surrounding environment and what our parents taught us during their lifetime. The people we mixed with and the lessons we learnt during our growing up years.
Each person has his/her own thoughts to analyze what is right and wrong. We are influenced by our hearts and as long as we are firmed in our principles, it will be the right thing to do.
For those who decided to take the wrong path or shortcut, it is their decisions in lives and nobody can do anything about it.
What we turn out to be will be our determination and character that we have molded during our childhood days.