The story
From devil + -ment (suffix forming nouns indicating the actions or results of what is denoted by the words it is attached to).
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: Devilish action or conduct; wickedness; (more generally) troublemaking behaviour; mischief; (countable) an instance of this. Full definition →
From devil + -ment (suffix forming nouns indicating the actions or results of what is denoted by the words it is attached to).
Etymology from Wiktionary, CC BY-SA 4.0.