If the user closes the modal by mistake, you could listen for that modal close event and if the form is considered dirty, warn the user at that moment.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If the user closes the modal by mistake, you could listen for that modal close event and if the form is considered dirty, warn the user at that moment.