This question has been closed, reopened, and closed again. Currently, it is in nomination for re-opening.
I think we should just stop closing/opening this question. It is on-topic.
First off, why does legality really matter? If it was a person just trying to get their stuff after forgetting their passcode, it's perfectly legal. If it were a thief, not so much. But, how do we know?
Even if the person is a thief, we are not participating in crime. We are simply relaying experience that we've had. There is no crime in teaching or learning. Secondly, how do we verify that the person is a criminal? Have a background check run on every profile? Thirdly, it is not our job to be police. The police have that job.
If a question is obviously illegal ("How do I break a lock to a Blockbuster quickly and efficiently"), then I can understand. But if there's no pure proof that it's illegal, there's no reason to close it.