Half of American voters think former President Donald Trump tried to stay in office illegally, putting democracy at risk, but another third believes his efforts to overturn the 2020 election were legal, a poll showed Sunday.

Sharply divided along party lines, the CBS News/YouGov poll released Sunday found 57% of Americans see last week’s federal indictment of the former president as upholding the rule of law while 52% said it was upholding democracy.

But roughly the same number, 59%, said they thought the indictment was an attempt to stop Trump’s presidential campaign.