Islam does not say that ; in fact there is a concept of Fitrah that each human is born with but if over time its not protected human will loose the pureness
this is a good article if we need to understand concept of Evil in Abrahamic concept/context ( but people have twisted the theologies and hence struggle)
https://yaqeeninstitute.org/read/paper/the-problem-of-evil-a-multifaceted-islamic-solution