Preheat the oven to 350°F (177°C). Grease and lightly flour a 9-inch springform pan.
Make the cake: In a bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
In a large bowl using a hand mixer or stand mixer with a paddle or whisk attachment, beat the butter and granulated sugar together on high speed until smooth and creamy, about 2 minutes. Scrape down the sides and bottom of the bowl as needed.
Add the eggs, sour cream, vanilla extract, and almond extract. Beat on medium-high speed until combined. The mixture might look curdled, but that's okay. Scrape down the sides and bottom of the bowl as needed.
With the mixer on low speed, mix in the dry ingredients until just smooth. Don't overmix; the batter will be thick.
Spread the batter into the prepared pan.
Make the crumb topping: In a small bowl, mix the flour, brown sugar, and cinnamon together with a fork. Stir in the melted butter until crumbs form.
Scatter the raspberries over the cake batter. Sprinkle the crumbs and sliced almonds on top.
Bake for 35-40 minutes, or until a toothpick inserted into the center comes out clean. If the top browns too quickly, loosely cover it with aluminum foil.
Take the cake out of the oven and place it on a wire rack. Let it cool slightly for a few minutes before slicing. Dust with confectioners' sugar before serving, if desired.