My (female) boss strongly recommended me on my first day of work to wear a ring in order for male colleagues to take me seriously and stop them from flirting with me

My (female) boss strongly recommended me on my first day of work to wear a ring in order for male colleagues to take me seriously and stop them from flirting with me