Hello R_Kumar. When dealing with soft cheeses like cream cheese, the safety guidelines are quite strict compared to hard cheeses.
Because of the high moisture content, mold can easily send invisible roots and bacteria deep beneath the surface where you cannot see them.
Therefore, it is not safe to simply scrape the top layer off. I strongly recommend discarding the entire tub to protect your health.