Oh. My. God. Just ask the person if they want your advice.
It’s the same in the (presumably male-dominated) workplace as it is in anywhere, such as giving unsolicited advice to someone at the (usually male-dominated) rock gym.
I'm admittedly a bit socially inept, but isn't it obviously not this simple? Someone saying they want honest feedback is no guarantee that they will take it well.