Navigating IRS Regulations for Partnership and LLC Losses: A Guide to Tax Planning and Audit Avoidance