Make sure it's in neutral and wood block your rear as stated above when taking front sprocket off.
I always take front sprocket off first, then install new front sprocket right after. I found I get a little bit of chain stretch when putting front sprocket on with new chain.... So I use the old one to torque it to spec. Then proceed to the rear....then the chain.
GL
Does this mean you torque your front sprocket with more torque than your bike produces in first gear?