Dropping a class.

Currently, I’m struggling in AP computer science and I’m at risk of falling to a c+. I was wondering if I should drop this class, and would it deeply affect my admission chances to UC Irvine or SB? Currently I’m taking four APS, but if I dropped AP computer science, it would put my AP count next semester to 2 because one of them converts to regular econ.