To understand Maya its very simple according to me this would make you feel obscure but believe me that she is all residing within us its we who decide to use her or not she e.g., see as a professor when you teach students it’s you who do your duty regularly unfazed but suddenly if you find any student weak /beautiful/wonderful/intelligent-/dumb etc your Maya gets activated and it’s you who decides to do the comforting job further in good /bad/ugly way as you like to the respective student and get entangled in Maya yourself ,if you chose to be detached then you will not suffer the pain or happiness or sorrow or sympathy or empathy as the student dint ask you but you thought so ,.so the only way is to just do our duty without attachment and that’s very difficult for human nature so some souls whom we call jaad muud or mad literally see they do not get affected by Maya not always ,some souls take birth as stones and reside in Narmada river banks doing tapa which during Narmada parikrama people explain ,and penance is not chanting names or fasting or walking bare foot all this is the soul that decides its punishment route to reach its destiny ,so in this Maya always affects them as this people always start boasting I have done this which is so hard to do in penance ,the gopis were affected by Maya whereas Krishna left Dwarka without affecting by Maya towards his next path for duty to perform to fight Kansa so Maya is within you and me we have to decide how much to get affected and how much to respond ,now you will ask how to control ,please note that when you meditate and observe yourself soul outside your body looking at your own self like third party you will understand that, that whom your soul was attached is not you but just a body which is also not your own where you resided so why cry when body pains it’s this feeling of detachment of extreme nature is experienced by Samadhi’s saints and for detachment the fire God sun bestows its duties unrelentlessly so does air ,water earth and yet don’t complain also the trees stones every part of nature does its duty with detachment only we human brain feel this because we entangle our self with Maya as it suits us very well its good also in one sense ,how? see a person in love losses all his senses and only concentrates on one thing the beloved soul and doing so he forgets all pleasures pains surroundings etc happenings this stage we will call that he is surrounded by Maya but still he is out of Maya as his concentration is on his love unrelentlesly focused the naad bindu OM or the other soul who he is in love ,so the gopis said if Maya affects us it’s still okay we like to stay in this state forever focused of love for Krishna yet detached from this world and performing there regular daily duties that’s detachment ,jai Maya ji Ki.