I agree with everything you say. I believe, however, that the problem is even more complex.
If you go walking on the savannah, and you are eaten by hungry lions, that’s not because they’re bad lions. The lions are just doing what lions do. They have no concept of good or bad. The fault, if any, is yours, for getting in the way of hungry lions.
Similarly, human infants are not born either good or bad. They’re just born human - with the range of instictive responses that implies. Every other aspect of behaviour is learned. Hopefully they will learn to be social - to get along with other people, and make a life amongst them. “Social”, however, is not the same thing as “good” or “bad”.
The trouble is, there is no hard and fast definition of good or bad. They change and merge, all the time. I cannot think of an action or behaviour that is now considered “good” that was not, at some time, in some place, considered evil. I know of no action that is now considered “bad” that was not, in the past, or in another country, considered desirable.
The Vikings built a successful empire on the basis of theft, murder, enslavement, and rape. They considered these actions heroic.
When I was a boy, homosexuality was illegal. All right-thinking people, priests, politicians, police, the press, schoolteachers, condemned and vilified homosexuals. At the same time, Jerry Lee Lewis was free to marry his 13 year old cousin.
Now it’s the people who criticise homosexuals who risk jail, and a man who had sex with a 13 year old would be locked away for a very long time.
Human nature and instinct are fixed. Behaviours and attitudes can be learned - but concepts such as “right and wrong” or “good and bad” are entirely mutable, and largely dictated by fashion.