Community Forum
There is no way to prevent someone from sending you an email. But you can set a filter to discard them before you see them if you like.
See here------------------
https://www.xfinity.com/support/articles/spam-filters-and-email-blocking-new-experience
Scroll about halfway down the page for blocking instructions.