Man almost shot after catching wife cheating