God can both hate and love sinners. His hatred is His love, His love is His hatred. His judgment is HIs mercy, HIs mercy is His judgment.

It's not just sin; it's also the unrepentant sinner that God hates--and loves. God hated Esau, but God chose him to be Isaac's first born. The first born gets all the blessings. But Esau messed up.

Malachi 1:3