Older Android phones that haven't received security updates for two years are not secure. The Play Integrity check therefore does not mean that the phone is secure, but only that it is a certified smartphone that came with Google services preinstalled.