This quote means that the distinction between someone who is seen as having a mental illness and someone who is seen as a genius depends on how successful they are. Another way of thinking of it is that the line that separates crazy and genius thoughts is success. If the crazy thought leads to successful results, then it is seen as genius.