Which preposition to use with contrarie

to Occurrences 2%

But I am guiltie of abetting him, Contrarie to his Maiestie's Edict, And therefore death is meritorious.

in Occurrences 1%

I say not, as the common voyce doth say, That all things which beneath the moone have being Are temporall and subiect to decay: But I say rather, though not all agreeing With some that weene the contrarie in thought, That all this whole shall one day come to nought.

Which preposition to use with  contrarie