Blowing up a pipeline in a war isn't violence, it's warfare, and thus IMHO Ukraine had every right to destroy a piece of infrastructure that could be used as political leverage and source of income for its invaders.