Orioles beat erring Rays 5-3