Hey Ramin!
The sentence “Just take it as a compliment” means that you should not be offended by whatever the person might have said to you. For example, if someone were to tell me that I look like an English professor, I should accept the statement as a compliment rather than an insult (though arguably, it could be interpreted as either one). Does that make sense to you? If not, I will attempt to clarify!
~Grace