If you pinch out the top of the plant when it's 4 or 5 feet tall it will throw out side shoots and you'll end up with more cukes than you can handle. Unless you know you're growing a monster variety, 8-10 inches is as near ready as matters. If you leave them too long they tend to have large seeds so earlier is better.