Navigating AI's Pitfalls in Software Development