It's a euphemism for not uttering the word devil. It is used as an interjection, often in the plural.
DIANTRE:ACUSADOR. SLANDERER.DEMON. DEVIL.