My wildlife training for observing at Jelm Mountain as a grad student included: if you see a cougar, don't worry it means it wasn't planning to attack you.
If you are attacked, fight back. You can't win, but it doesn't know that and gets worried and will probably run off.