Question: what to do if iphone is disabled without losing data?
Answer: If you don't have a backup and you're locked out of your iPhone, sadly, there's no official way to restore your iPhone without losing the data. You'll have to put your iPhone in recovery mode and restore it using iTunes. But this way you'll lose all data. One way out of this is by using iCloud backup.