This is extraordinarily dangerous advice.
The description given above is likely a myocardial infarction or an aortic dissection.
If you are having chest pain, you should minimize myocardial demand. Sit down. Call emergency services.
Do not exert yourself by walking. That is a recipe for sudden cardiac death.