1. Is this behavior illegal?
It can be clearly informed that this behavior does not violate the law, because the law does not clearly provide some specific provisions on this situation, but this behavior is indeed immoral. And if you have been warned many times but you still throw shit at someone's door, then this behavior is actually illegal. Because you have harmed the legitimate rights and interests of others and have had a certain impact on others, if the circumstances are minor, it is an insult to civil torts, but if the circumstances are serious, you may violate the "Public Security Management Punishment Law of the People's Republic of China" .
2. Specific analysis
In real life, some people may actually do this, but there must be something wrong with the moral character of such people. If there is any problem, the two of us can discuss it. You must not do this. Just throw shit at other people’s doors. This behavior is really unethical. Anyone who openly insults others or fabricates facts to slander others shall be detained for not more than five days or fined not more than 500 yuan. If the circumstances are serious, the offender may be detained for not less than five days but not more than ten days and fined five hundred yuan.
Third, conclusion
So everyone must not do this in real life. This kind of behavior is really immoral. Anyone who sees this kind of person will feel particularly scary. A person nowadays should be a person who respects the law and also a person who respects public ethics. This kind of behavior is really unethical. Everyone can discuss anything, and you can get along peacefully with this person. If there is something that no one can talk about, you can also call the police.