So carry a separate device while traveling. Or wipe your phone, then restore after the border. This is just going to lead to a service that does this for you and the overreaching feds won’t be able to do anything about it.
And as far as I can tell you still don’t have to give them your pin code.
They don't need your pin, they can just hack the phone take all your data anyway. ICE has a contract with Cellebrite
the worry is that this will be interpreted as tampering and cary consequences.
It's been somewhat established that having a wiped or basic phone is in itself sus and reason for them to investigate you further.