Cry over Spilt (USA: Spilled) Milk

What does the idiom “Cry over Spilt (USA: Spilled) Milk ” mean?

Definition:

To waste energy moaning about something that has already happened

For example:

“The money is gone. Don’t cry over spilt milk—there will be new opportunities.”

Notes:

This is generally used in the negative, as in the example.