If Statement Inside collision that changes scene

I am trying to make a game where if the water touches the fire ball, it will change to a you died scene. I am trying to use the if statement inside the collision to make this happen, but I can not get the if statement to work. if someone could post an example, it would be greatly appreciated.

so first on top of your script, you will see a few statements like-
using UnityEngine;
put another one that says-
using UnityEngine.SceneManagement;
now put a compare tag on the water object, lets call that tag “Water”

Make a onCollisionEnter void and put this-
private void OnCollisionEnter(Collision collision)
{
if(collision.gameObject.CompareTag == “Water”)
{
SceneManager.LoadScene(“SceneName”);
}
}