As Kaspersky researchers noted in the past, asking the chatbot in the same conversation about the safety of the provided commands is a straightforward way to determine if they're safe or not.
That seems like bad advice... It might work most of the time, or in very obvious cases, but AI chatbots are notoriously unreliable!