As others have mentioned, it would be good to talk about these intruding thoughts with a doctor and/or therapist. But (and this might be easier said than done), can you also try reminding yourself what a good person you are? Ironically, your fears of being a bad person actually illustrate what a kind, and caring individual you are! You want to help children--the last thing you would ever want to do is harm them!
Remind yourself, if you can, of what a kind and caring person you are. Tell yourself that you are a good person, and you deserve love--most importantly, from yourself--because it's true, you are good!
Wishing you all the best, AV

--Nemo