A three-minute trick: slide a note up twelve frets to its octave and back, in time, until the top of the neck stops being scary and your ear can hear where a slide will land.
In short A three-minute trick rather than a scale lesson. Pick a note, slide it up twelve frets to the same note an octave higher, and back. Do it enough and two things happen: you stop fearing the top of the neck, and your ear learns to hear a start point and an end point so you land slides where you mean to.
The exercise
Start on the seventh fret of any string, any finger you like. Slide up to the equivalent note an octave above, which is twelve frets higher, so the nineteenth fret. Then slide back down. That is the whole thing. Do it slowly and in time, and keep the note ringing for the full length rather than letting it die on the way.
If the big fret numbers confuse you
Remember the twelfth fret is where the neck repeats itself. The seventh fret is the one-two-three dot marker in the lower half; the nineteenth is the one-two-three dot marker in the upper half. You are sliding between the same marker twice.
Landing the slide
Imagine where you are going to stop and what it will feel like when you get there. Move a little quicker to start and ease off about two frets before the target so you lean into it rather than overshoot. Up high your hand will start to meet the body of the guitar, which is a useful physical cue on an electric; on an acoustic the heel gets in the way, so do what you can.
Make it easier, then harder
A bit more gain on the amp gives you more sustain and more forgiveness while you learn the distance. Once it is clean, take the gain off, change strings, change the starting fret, and slide into target notes within a scale you already know. Your ear starts pre-hearing the destination, which is the point.
Quick answers
How far is an octave on a guitar string? Twelve frets. The seventh fret and the nineteenth fret on the same string are the same note an octave apart.
How do I slide to the right fret on guitar? Picture the destination before you move, start a little quicker and slow down about two frets before the target so you ease into it.
Try it on every string for a week and tell me if the top of the neck feels different.