We must know that both good and bad are from Allāh ﷻ. Whether someone praises you or swears at you, you must treat them the same. Accept criticism as a test and learn the lesson. There is no need to answer or to argue, just look for how you might be at fault and continue on your way.