You place wherever you were at before the start of yesterday/today’s war.
If you were Gold 1 and won this war that pushed you to rank 500 in P4 then you are not safe. But if you were in P4 prior to the last war, then you are good.