In order for Truecaller to warn you about spam calls, it adds a contact to your phonebook containing spam numbers reported by other Truecaller users. In order to stop getting these notifications, you need to delete the contact ’Identified as Spam’ from your phonebook