Origin and Application:
More often than not, men are prone to what is forbidden. Look at Adam and Eve. They desire fruits from the only tree which is forbidden by God.
This idiom has been cited in literary works since its appearance in the English Bible. Often, it carries the connotations of prohibited lusts, which are sought after for their seeming pleasantness.