And if any one desires to harm them,
Apparently, the two witnesses' testimony angers the Jewish people first and the rest of the world second.
Why?
There is an implication that these two witnesses can read thoughts by the use of the phrase "desires to harm them". They understand the desires/intent of those around them. It is not clear that they also know of their death (verse 7) and restoration (verse 11).
fire proceeds out of their mouth and devours their enemies;
This is a spoken judgment. Elijah was so anointed to 'speak fire' (2 Kings 1:9-10-12-16). Jeremiah 5:14 indicates Jeremiah was able to speak and the people were like wood.
Note the results of these spoken judgments:
and if anyone would desire to harm them, in this manner he must be killed.
This is the second time the phrase "desire to harm" is used in this verse. This gives an emphatic clue to the way the world and AntiChrist will be "terminated". It is an 'eye for eye' principle.
Also, this is reactive witnessing (Matthew 12:9-15-16) as opposed to proactive witnessing, that is, attesting to signs, wonders, and miracles.