When you paint them all as dangerous, evil people who must be eliminated from the country one way or the other, you are very much espousing the same philosophy as Nazi Germany.
You can either deny that or attempt to justify it. You're attempting to justify it.
I suppose you have firsthand knowledge of this, having close personal friendships with the majority of muslims in India. Either that, or your statement was mindless sentimental drivel.
The Nazis slaughtered the Jews simply because they were Jewish.
When muslims face the consequences of insurgency, assassinations, terrorism, and the rest of the usual muslim mayhem, that's a far different thing.
Using your "reasoning", you could just as easily call the Allies of WWII nazis for attacking all of Germany and Japan - when surely most Germans and Japanese were nice people who just wanted us all to get along.