In my opinion, Dexter is no longer an anti-hero but has slipped straight into the role of a villain at worst and an anti-villain at best
While he was originally an anti-hero, he starts going downhill after he kills Oscar Prado, someone who doesn't know the code. While it's easy to pass it off as self-defence, Clint McKay and the paedophile were technically innocent of murder ( they absolutely deserve to die, but it is an example of Dexter bending his code). Still, then there's the drug dealer in New Blood, which is debatable, and whether or not he even deserved it.
BUT Jonathan Farrow was innocent; he fucked up and then just moves on, calling it a tragic accident and brushing it off. That alone changes a lot of things. Primarily, it shows us that breaking the code is meaningless; as much as he talks about caring for innocent lives , he doesn't actually care when he takes them.
Then there's Rankin: while Jonathan was an accident, Rankin was a fit of rage; there is no justifying that there was no accidental mix-up with victims, no mistaken identity just murder, love with you, and Dexter quite happily let it go.
Now, in my opinion, if it ended here, we could call him an anti-villain: does bad things but is mostly on the right track, even if it's for very obviously selfish reasons (I mostly say this because he's happy to take innocent lives but only seems mad when other people do it)
However, LaGuerta was completely innocent; she was a good person, a good cop, and he was gonna kill her out of self-preservation- no other reason than that, because it benefited him. Worse, he drags Deb down with him (you could even argue he manipulates his own sister to get his way); one time, still a push to lean toward hero or anti-hero, but it wasn't once.
Sergeant Logan wasn't just innocent, wasn't just a good cop; he was an upstanding member of society, a pillar of the community, and that kills him in cold blood. While Harrison was in danger, there were other ways he could have prevented this situation.
And if his actions weren't enough, Resurrection shows users a worse side of his mind, as we repeatedly see him show signs of jealousy and envy when killers act so freely, in the most recent season, becoming jealous of not having a reputation and dragging his son into his mess.
What's worse, Harry has changed personality: while originally a representation of his father, who served to back up the code and keep Dexter in line, he now, more often than not, agrees with him, showing Dexter twisting his own so-called moral guide to suit his own benefit.
Dexter is often compared to the Punisher, but when the Punisher has killed innocent people, he has absolutely spiralled into depression, anxiety ( depending on the comic, even suicidal), same with Wolverine, Deadpool, etc., and while they all tried to preserve themselves and their friends, they'll go for blackmail, manipulation, at worst assault. Still, Dexter would kill an innocent person to protect himself or his son.
That, combined with his more selfish, narcissistic and jealous personality this season, in my opinion, makes it difficult to call him anything other than an anti-villain. If we're being lenient, or a villain at worst, his actions are only good by coincidence, with him upholding the code more out of tradition, and his motivations are far from selfless and moral
I am quite curious if people agree or disagree with me, and if they do disagree, how you defend his more heinous actions (I also want to point out that I love Dexter. Overall, I think he's a brilliant character)
( Last note: I apologise for any grammar or spelling mistakes I used; I talk to type because of disabilities, and use Grammarly to fix the mistakes that the dictaphone makes, but Grammarly isn't one hundred per cent bulletproof when it comes to fixing mistakes.)