Man seriously hurt after swerving to miss hitting deer, crashes into tree