The text plays on the double meaning of 'having the last word'. In one sense, it means to win an argument or to be the person to make the final point. In another sense, it implies that by apologizing, one ends the argument, which is a twist on the expectation that 'having the last word' usually means not backing down.
If you want the last word with a woman , apologize .