The do's and don't's about getting it on with a co-worker.Getty Images

Let’s face it: Working closely with your colleagues day in and day out may sometimes lead to romance.

And considering that New Yorkers spend more time commuting and working than employees in any other city in the country, as the Office of the New York City Comptroller reports, many of us simply don’t have the time to meet people anywhere else.

Such seems to be the case with “Morning Joe” hosts Mika Brzezinski and Joe Scarborough. As Page Six revealed, those two seem to be more than just co-hosts since Brzezinski’s divorce last month.

But before you jump into a hot fling with your cubicle-mate, know that there are many risks associated with office romances. “You may be required to disclose your relationship [to human resources],” warns Lynn Robinson, author of “Put Your Intuition to Work.” “If that’s the case in your company, you and your partner need to have a serious conversation about who would leave or transfer if required.”

Of course, adhering to company policy is just the first step of testing the waters of interoffice dating. Here’s what else you need to know if Cupid fires his arrow in your office.

Don’t date your boss: Dr. Seth Meyers, LA-based psychologist and author of “Dr. Seth’s Love Prescription,” isn’t a big fan of office romances, particularly ones that involve your boss. “Starting a relationship where someone has power over you is almost always foolish,” he says. He adds that in those scenarios, you can’t predict whether that power will be used against you when the affair ends, “especially if you’re the one who ended it.”

Do create ground rules, for real life and online: “Going public can have lasting repercussions on your professional reputation,” says Brooklyn-based dating coach Francesca Hogi. Have a discussion to ensure you’re on the same page about when, if and how it should happen. And remember, “it only takes one co-worker seeing a post on Facebook for the entire office to find out.”

Don’t tell your co-workers too soon: “You’ll never live it down” if things don’t work out between the two of you, says Hogi. “Office gossip takes on a life of its own, and some stories can even travel with you when you get a new job in the same industry.” If and when you decide to go public, assume everyone will know and remember, even after the relationship ends. Hogi’s advice: “Decide if the relationship is serious and worth the risk.”

‘Going public can have lasting repercussions on your professional reputation.’

- Francesca Hogi, dating coach

Do instill boundaries at work: After you’ve come clean to your boss and co-workers about your relationship, be sure to separate yourselves at work — especially if you work alongside each other on a daily basis. “Don’t volunteer for the same project or spearhead the same committee,” says Hogi. “Don’t create any unnecessary opportunities for someone to accuse you of unprofessionalism or favoritism.”

Don’t use company emails to flirt: It may seem harmless to fire off a quick note of affection, but you must refrain. “It’s easy to put the wrong name in the ‘to’ column and hit send,” says Robinson. “Or what if the email was inadvertently shared? Is it worth the possibility of ruining your professional image, plus getting into trouble with human resources?” Your best bet is to keep the electronic PDA off the company server entirely.

Do be discreet: “No one wants to hear the explicit details of your dates or see over-the-top PDAs,” says Robinson. This includes social media as well, so refrain from posting selfies on Instagram of the two of you sharing spaghetti a la “Lady and the Tramp.” Plus, if you’re making weekend plans or even arguing during the workday, take it outside and agree to resolve it after office hours.

Don’t hook up at a work function: Alcohol may lower your guard, but just because you’re at a party doesn’t mean you can suddenly switch from work-mode to couple-mode. “It will make your co-workers uncomfortable and make you look highly unprofessional,” Hogi warns.