As a non-citizen, I don't think you have enough rights to really fight back, and you could risk upsetting a petty border agent who may decide to 'punish' you and maybe deny entry.
Thankfully I've learned to back up and wipe devices before travel and then only restore after landing.
Thankfully I've learned to back up and wipe devices before travel and then only restore after landing.