A converse to the law of the iterated logarithm