What is the meaning of [It’s no use crying over spilt milk.]

There is no point in staying upset over a mistake because you can’t undo what has happened.

Example: X: He is feeling terrible for accidently elbowing the flower pot from the window. Y: It’s broken now. It’s no use crying over spilt milk.