Well I don't believe you should have grabbed it by the neck and screamed at it. That's not exactly a nice thing to do to an animal, in my opinion.
Did you mean by the scruff? If you grabbed it by the scruff, that's one thing. But if you actually closed your fingers around the cat's neck, someone might interpret that as animal cruelty, in my opinion.