(Pro 3:4 KJV) So shalt thou find favour and good understanding in the sight of God and man.
Evil exists. Proverbs continually reinforces that. There are people who delight in doing evil. This verse reminds us that there are also a lot of people who respond to righteousness. If you look back to the previous verse it talks about kindness and truth. Even people who do not follow the God of the Bible can respond to that and many will.
So? While some will reject and persecute there are many who will see your righteousness and honor it. Even if they don’t agree with you they will sometimes take it into account.