The best "fail-safe" for such an intelligence IMHO: It should be able to act out of love and yes, naturally we'd have to earn it if we want to be treated humanely as well.
Love & understanding for all fellow animals, especially the weak and vulnerable.
A whole new twist to the good old golden rule!