A man who made a racist gesture during a match between AFC Wimbledon and Milton Keynes Dons has been banned from football grounds for three years.