As a general rule for life I've always made sure to keep anything romantic out of my work life. If there was someone important enough to me that I worked with who I wanted to approach in that sense I'd wait until one of us moved onto another job. I'm not willing to say the vast majority of work related flings and relationships end up in disaster but I'm sure a lot of other people won't say that the majority wind up as fairy tale endings, either.
I'm surprised more people don't live and die by this rule. It's something I decided on as a teen to avoid drama, purely, in my life. It wasn't something constructed from advice from elders or lessons learned through other people's nightmare stories. This idea wasn't constructed for a lifetime of self preservation or to protect something important to me. It was a fairly simple concept about reading the situation and showing respect for everyone involved including co-workers.