They’re not real mistakes. The end justifies the means and they think their god is only smart enough to go with this, basically.
The ends justify the means?
Hypotheticaly then: if I had a 100% guarantee that murdering all babies would get them into heaven, but you’d go to hell, is it morally right to murder all babies? The ends justify the means, do they not? We need to get babies to heaven! So murder them all!
No, it’s absolutely still monstrous. Because utilitarianism is stupid.
Stanislaw Lem had a short story about something like this. Basically a missionary came to a planet populated by cute innocent fur balls. He taught them the Bible, so they tortured him to death to make him a martyr and guarantee that he gets to haven, knowingly condemning themselves to hell out of compassion for the priest.