The best defence against online disinformation is to teach voters to differentiate truth from lies, a state's electoral commissioner says as a poll looms.