You can flip that and say the advice your co-worker needed to hear: don't be duplicitous or treacherous in the workplace. You may think it gets you ahead but this is highly illusory and temporary. When you look back you'll just have anxiety and regrets behind you, if you have decency. And when it's all over, the things you thought were really important at the time won't be, so why be a jerk about them?