"It's better to instill a healthy core in individuals. Then all manner of sinful traps will be avoided even when presented."
SSAD is a maladaptive response to a homosexual molestation or seduction in the pre-adult years. The young are not always able to avoid being molested, and when they are, the danger exists that they will develop SSAD.
I refer to SSAD as the only transmissible mental disorder, because the victim is really not in control of whether he will develop SSAD or not, any more than the victims of depression, bipolar, OCD, or paranoid schizophrenia were in control when they fell ill.
It's impossible to say anything bad about a good upbringing, but a good upbringing will not necessarily prevent any of the mental disorders named above.
Evidently, then, you have found a lie in the Bible.
The Bible says:
Train a child up in the way he should go, and when he is old, he will not depart from it.
I have never found that violated. Never.
I've found those who claimed so. But a few questions demonstrated, they were wrong.