In all trials for assault and battery, or for an assault, the defendant may give in evidence, in excuse or justification, any insulting words used by the person on whom the assault or assault and battery was committed, at the time of the commission thereof, toward the defendant, and the jury may consider and determine whether such words were or were not a sufficient excuse for or justification of the offense committed.