Good intention is not enough..

There is more to that hadith. We often only hear "Innamal A'aamlo bin niyaat"

There is one more flavour that tells: "innamal A'aamalo bil khawaatim"

that is Actions depends upon their ending.

Mirch's logic is a better way for looking things in context.