Device of deliberately using an ambiguous word or phrase, that often has a coarse or indelicate connotation.
An accidental double entendre is often termed a Freudian slip, after Sigmund Freud suggested that a person may reveal their unconscious mind by verbal mistakes.