Context can be said to start earlier on, where the young man is being exhorted to pursue wisdom, and to walk in God's ways. For example:
"It will save you also from the adulteress, from the wayward wife with
her seductive words, who has left the partner of her youth and ignored
the covenant she made before God. For her house leads down to death,
and her paths to the spirits of the dead. None who go to her return or
attain the paths of life.. Thus you will walk in the ways of good men
and keep to the paths of the righteous." Proverbs 2:16-20 NIV
"My son... the lips of an adulteress drip honey, and her speech is
smoother than oil, but in the end she is bitter as gall, sharp as a
double-edged sword. Her feet go down to death; her steps lead straight
to the grave... May your fountain be blessed, and may you rejoice in
the wife of your youth. A loving doe, a graceful deer - may her
breasts satisfy you always, may you ever be captivated by her love.
Why be captivated, my son, by an adulteress?" Proverbs 5:18-20 NIV
Chapter 6 continues with warnings against adultery, chapter 7 runs with the same theme. It depicts an imagined scene, where a foolish youth walked by the house of a prostitute, who came out to seduce him, luring him in with descriptions of how attractive her bed is, which is detailed in the verse in question. The myrrh, aloes and cinnamon made fragrant perfumes that (in those days and in that culture) were linked with making love. See Psalm 45:8; S of S 4:14 & 5:5.
The imagined scenario has the foolish youth charging after her. The analogies of an arrow piercing his liver, and of a bird caught in a snare are used to drive home, yet again, that adultery leads to death. It's not about 'cooking' anything, but it certainly is the sternest possible warning against committing the sin of adultery. It's not about spoiling bed-linen with oily or fatty substances, but it certainly is a vivid description of how easily a foolish youth could be tempted to seek to lie in the bed of a wanton woman. That is the context, leading to the repeated warning not to let adultery appear attractive or sensuous, because the end of it is death.