Maybe the best strategy is to make as many allies as possible expecting that some day that would increase the odds of surviving a hostile contact with a other civilizations or other threats...
Our understanding of life and the universe is limited. Our current version of the Drake equation is really off, and we do not have an answer to the Fermi paradox. Collaborate or compete are usually context sensitive decisions. The best thing to do is bounded to our understanding of game theory, which is a field full of open questions.