“A servant is not greater than his master.”
“A student is not greater than his teacher.”
What do those mean?: If they hated Christ/God Himself for His teachings on the right ways of God vs the wrong ways of the world, then they will hate you (as His follower) as well for pushing His teachings.
Those who have eyes to see and ears to hear (the elect) will accept the teachings you give and will welcome you. The vast majority will hate you for them.
Titus 3:10-11 — “Reject a divisive man after the first and second admonition, knowing that such a person is warped and sinning, being self-condemned.” Instruct them once. If they will not hear you, warn them again. If they still won’t hear you, leave them be – their condemnation is just.
Matthew 7:6 — “Do not give what is holy to the dogs; nor cast your pearls before swine, lest they trample them under their feet, and turn and tear you in pieces.” Don’t force these good teachings on others who are hostile towards you and reject them, lest they harm you verbally or even physically – their condemnation is just.
However, when they curse and insult and criticize you for pushing the teachings of God, do not return evil for evil. Rather: speak evil of no one, be peaceable, gentle, showing all humility to all men (Titus 3:2).