A Wrexham paedophile branded 'a danger to children' has been jailed.