Original: In case of danger the goby fish touches the shrimp with its tail to warn it.
Simplified: In case of danger the goby fish touches the shrimp with its tail to warn it of imminent danger.