I personally came to this opinion when he declared previous elections rigged without any evidence. The election institute and its fairness is a cornerstone myth of a democracy, you cannot destroy it without ruining the democracy. If the election institute is corrupted there is no way to have a legitimate president. You can have only tyrants and dictators after that. It means that you are not anti-democratic you can oppose the election institute only if you know it is corrupt. But Trump didn't know, I'm sure he knew that the elections were not rigged, and yet he attacked the elections.
I was not sure, because I had a hypothesis that Trump is just stupid and do not understand what he is doing. But before the current elections he talked a lot how he is going to abuse power to persecute political opponents, or just any opponents, if we believe his words, he is going to persecute everyone he doesn't like.