Here is the context:
Rail means "to revile or scold in harsh, insolent, or abusive language," whereas raillery usually suggests cutting wit that pokes fun good-naturedly.
I feel that cutting means acute there, but I am in doubt because neither the Merriam-Webster nor Oxford dictionary give similar definitions.