When they deliver you over, do not be anxious how you are to speak or what you are to say, for what you are to say will be given to you in that hour. For it is not you who speak, but the Spirit of your Father speaking through you.
Matthew 10:19-20

#yeshua wasn't saying that you should never prepare a defense when you are falsely accused. That depends on the circumstances. What you should always do is pray, study the Scriptures, and trust in God to guide you and bring about the end that best serves his purposes.