There is nothing in the film that communicates this. It may be that we are supposed to view the film this way, but the film itself is not sophisticated in communicating this message. Meanwhile, there are many characters who are clearly well-intentioned (Poe and Finn) whose actions seem to be explicitly criticized.
Lucas was a far more sophisticated filmmaker. In his prequels the Jedi are deeply flawed, and the audience is supposed to notice that they abandon their commitment to peace ("I can protect you, but I cannot fight a war for you") to the point that they die (literally and allegorically) marching into war. Likewise, Luke's effort to rescue his friends in Empire is well-intentioned, but nearly destroys him because he chooses violence as his tool (similar to Anakin's efforts to rescue Padme through violence). It is not accidental that the temptation that Vader offers Luke is the same temptation Palpatine offers Anakin: the use of violence for the sake of good ("join me, and bring peace and order to the galaxy") -- a trap in both films.