Sugar doesn't cause insulin resistance or (type 2) diabetes. Both are a result of being overweight.
Of course, you can get overweight by eating too much sugar, but it's really about not eating too many calories long-term, regardless of the source.
And of course, refined sugar isn't healthy at all and consumption should be kept to a minimum, outside of exercise.