Do a thorough backup. Put iPhone into recovery mode by turning off device then connect the device to a computer while holding down home for older device or volume down for 7 and iTunes will detect it is in recovery mode. Select "Update" only and iTunes will attempt to downgrade while preserving data. The backup is just in case it fails.