A young first-time offender was warned to expect an “inevitable” prison sentence after admitting kidnapping and falsely imprisoning a girl, with intent to rape her.