It is possible to contact the other party just by looking up the phone number, and there are serious things, so it is not illegal in this case.
Moreover, in the process of searching for information, no harm or property loss was caused to this person.