The moral of the story is about not being greedy and being careful when making deals. It shows how being too trusting or trying to take advantage of someone can backfire.
A similar Russian fairy tale is "Вершки и корешки" (Vershki i koreshki), which translates to "Tops and Roots." It has a similar theme of a bear and a fox making deals about crops, with the fox tricking the bear.