Ananias' sin wasn't holding back some of the proceeds from the sale of his house. There's no command to sell your house and give everything to the community. He sinned by breaking a vow and lying about it. Acts 5:3-4

Many people have broken vows to God and lied about it like Ananias in Acts 5. That God hasn't struck them dead doesn't mean he doesn't care. It only means he's patient and slow to anger. The story of Ananias should inspire fear and obedience.