If your home had a ruptured pipe, that was spraying sewage all over the sidewalk, I think someone stepping onto your property, and turning the firehose of shit off would be behaving ethically.
Trespass to save people from themselves is one thing. Trespass to save the public is quite another.