Generally speaking so long as you aren't so blatant and descriptive that it slips the line from 'literary' to 'pornography'. I wish I could give a clear bright line, but I'll stick with the obscenity standard, 'I'll know it when I see it'. That being said, neither of the examples you gave...