The author has already explained what he/she means here in brackets. Essentially it means doing something detrimental to yourself or that goes against your own values (to please someone else.) To sell yourself short, go against your own principles - here to do something sexually that you are not comfortable with/don't agree with etc.