The Do Not Call Registry is somewhat useful but not very effective at preventing these types of telephone scam calls.
I purchased a Panasonic phone which I can block any such phone numbers myself.
https://www.google.com/webhp?hl=en#q=telephone+phone+call+blocker+reviews&hl=en&tbm=shop
https://consumerist.com/2015/07/28/consumers-put-robocall-blocking-devices-to-the-test/
The problem with the Panasonic phones is you can only block 200 numbers. There’s no way to have it automatically erase the oldest number you entered so you can enter #201. Plus you can’t
Load the number list from the phone into your computer for management. Panasonic is really missing the boat with the CID Block feature in their phones. (I have a Panasonic phone system, too)