The reason why Crocodile didn't use armament haki or observation haki when fighting against Luffy is probably because his introduction. "My name is Monkey D. Luffy and I'm going to be the King of Pirates." Ignoring the second half, Crocodile isn't an idiot and knows who else is named "Monkey D.", Garp and Dragon. He ain't gonna mess with that.