Envy occurs when we want something that another person has. Jealousy is when we fear losing a relationship or a valued part of a relationship that we already have.
Example of jealousy is when you fear loosing attention & affection.
Emotions are neither good or bad. Fealing jealous and envious are part of the human experience. It is what we do with these emotions that define us as good or bad.