From Audit to Active Defense: Complete Smart Contract Security with Guardrail