I've always found that a frustrating aspect of the AI's make up - about 4 months ago I had a similar kind of game where I was going to win by space race - and did so - even though it would have taken Pericles no effort to wipe me out - he had about 15x my power and 45% on domination stats (+5 Vassals) and it kinda seemed a shame that the AI didn't bother to declare war on me to stop me - instead with 4 turns till my ship arrived he DOW'ed Mansa Musa - who was neither big enough to matter and a far harder initial fight.
HOWEVER.....
I would be a bit concerned if the AI was overly programmed to stop you (or any player/AI winning) as it would make cultural victory virtually impossible - i.e 3 AI's DOW you and all focus on 1 big city!! Also generally I think the game would feel frustrating - so not quite sure how this could be done.
Generally would feel nice to see the AI make more of an effort though or prioritise correctly - I play knowing if Mansa is in the game - even though he may be way ahead in tech for Space Race - I've never seen him pursue it - he always seems to stop and try culturual victory (which he can be dangerous at - but thats not the point!)
I alwasy just turn off all other victory conditions other than Domination.