If you own the device and are locked out, here are lawful options you can try:

Before attempting technical bypasses, always prioritize official channels as they provide a permanent solution that preserves all device functions (like SIM card calls and iCloud services).

So, can you bypass iCloud on an iPhone 5s running iOS 12.5.7? The short answer is Here is everything you need to know.