I could be way off but IIRC Koji can share a bit of what's gonna happen, so Boruto might know that if he involves his friends more, especially his closest, they'll have a bad ending.
And it might especially hold true for Sarada not only because she's close to him, but also because of Sasuke's words