It’s fairly simple. The obvious solution you can just google the number and the search results will tell you if there’s something wrong with the number. Alternatively, you can look up special websites that help to figure whose number https://shoustar.com/phones/ . It’s that simple then you can just block the numbers