There are so many variables involved in that question.
Are you really 'friendly' with the co-worker or is it situational friendship?
What kind of personality are you dealing with?
Are you in a position of authority with this co-worker?
Does this happen all the time?
Even friendly criticism of the way we dress or fix or hair or wear our make-up can be taken incorrectly. Instead of being seen as helpful, it's an attack on the personal choices that have been made and can run deep as part of the image that is held inside that person's head. Consider all this and then decide whether to say anything and/or approach it from a side angle of speaking/gossiping to them about 'someone else' that committed that kind of faux pas and how it impacted the way they were perceived at their job.