How can I download photos from a disabled iPhone before restoring it?

my iPhone 5s has gone to disabled mode. how can I save my photos
before I go to restore
Hopefully, you have iCloud Photo Library and/or Photostream enabled so that those pics will be saved to iCloud for later syncing after you've restored your device. If not, I hope you had iCloud backup enabled. If no to the above, then you can try creating a backup using iTunes on your computer prior to restoring it.

Original thread: https://forums.imore.com/threads/how-can-i-download-photos-from-a-disabled-iphone-before-restoring-it.344354/