If step 2 happens at the border post detention, or prior to arrival at the border, the perspective to the police is all the same, they see a wiped phone. Police detained somebody, saw they had a wiped phone. Doesn't matter when they wiped it.
Common sense...