Safest thing to do is just leave no possible room for doubt. This means you can’t be friends with your coworkers, which is disappointing, but the tail risk of accidentally saying something that crosses the line is too severe when it comes to professional consequences.