Go to Start > Settings > Update and Security > Windows Security > Antivirus and Threat Protection > Manage Settings (or Antivirus and Threat Protection Settings in earlier versions of Windows 10).
Set real-time protection to Off.( Note that scheduled scans will continue.)