Anyone who kills another person intentionally is insane. Any rapist is also insane. In my opinion it doesn't matter. Cold-blooded murderers and rapists need special treatments, for the good of society. So for these crimes I propose:
Whether the behaviour is caused by genetics or experiences or whatever else, a society should deal with this efficiently. Remove the offenders from society, publicly and permanently, so that this becomes a social incentive for other potential criminals. Add the threat of severe punishment to the "soup" of genes, experiences and whatever else causes a behaviour. It might help.
Even if it doesn't help, the ones that already have committed the crime and proven themselves to be (voluntarily or otherwise) a threat to society are put away so they can't commit crimes again. They also can't spawn or traumatically raise more people who might also be more genetically and socially inclined to commit these types of crimes.
As an added bonus, the relatives of victims might feel some slight comfort and be able to move on in their own lives knowing that the creep that ruined their life is gone for good.
If genes makes someone a serial killer or rapist, he had a tough break in life but it should not matter in a criminal trial. If they caused him to be a kleptomaniac he will get help, but not when his disease causes physical and emotional trauma in other humans. These others have a disease as well, caused by him, so he has to go.