If you want to really blow your mind, look into the theory of how self-awareness evolved in humans.
One theory says before self-awareness evolved, we were like gorillas or monkeys in that we had no ability to know what others were thinking about us or any ability to deceive.
Then through evolution driven by sexual strategy, female humans evolved the ability to deceive males in order to have multiple sexual partners without the male learning about it and killing or abandoning her offspring. Without self awareness, the males would be as easy to deceive as a dog. The female could continually find new, more beneficial sexual partners to pass her genes down while also maintaining the day to day support of her mate.
In this, she would have evolved the ability to differentiate between lies and truth or put another way....”the knowledge of good and evil”.
The theory posits that sometime after females gained this trait, males also gained it.
I recall seeing documentaries on fish and antelope which would seem to indicate “self-awareness”, but maybe it was just instinct or learning.