If I told you it was perfectly legal to have sex with a 17 year old anywhere in the world, would you call me as a defence witness at your trial? Research the laws of the country you intend to visit, and stick to them would be my best advice.