Question about races schedule

Is it ok to do a 10k (really hard course) a week before the half ironman?

If you are fit and recover well, why not?

hmm…is it ok to a 10K race during taper? Shall i go for a best time on a hard course or just have it as a training run?

Why not run it at your expected 1/2 marathon pace?

I wouldn’t.