Well if you get right down to it, feeling guilty only makes it worse. You should just not have the goal in the first place.
Hence the ‘if’ at the beginning of my comment, though in practice I do see how guilt can be useful at that stage: Most people don’t have complete control over their emotions or what they want, and given the choice between someone wanting to murder someone, feeling guilty about wanting that, and not doing it because they feel guilty about even considering it, and someone wanting to murder someone, deciding that that’s a perfectly reasonable thing to want, and actually going through with it, the former is pretty clearly preferable. Not wanting to murder someone at all is preferable to either of those, but humans are pretty lousy at wanting what we want to want.
Hence the ‘if’ at the beginning of my comment, though in practice I do see how guilt can be useful at that stage: Most people don’t have complete control over their emotions or what they want, and given the choice between someone wanting to murder someone, feeling guilty about wanting that, and not doing it because they feel guilty about even considering it, and someone wanting to murder someone, deciding that that’s a perfectly reasonable thing to want, and actually going through with it, the former is pretty clearly preferable. Not wanting to murder someone at all is preferable to either of those, but humans are pretty lousy at wanting what we want to want.