(10) You are to stone him with stones to death because he tried to entice you away from Adonai (the Lord) your God, who brought you out of Egypt, from the house of slavery. (12) Then all Israel will hear and be afraid, and never again will they do such an evil thing as this in your midst. (TLV)
The context for these verses is the handling of those among the Israelites who try to turn other Israelites away from the God of Israel to follow other gods. What I take from this passage that I can apply to my life is that the rapid enforcement of penalties for wrongful conduct will deter others from following the same path. When onlookers see the penalty for wrong doing (in this case stoning to death) they will associate the tragic consequence with the sin and thus many will be deterred from doing so themselves. The converse is also true. Untimely or delayed discipline for wrong doing actually promotes the spread of bad conduct and encourages rebellion.