Was it customary to execute people claiming divinity?

Was it customary for the Sanhedrin to execute people claiming divinity? I’ve read that cult activity was prevalent at the time, and there were many so-called miracle workers.

Seems a bit harsh.