Playing dead to escape an enemy is okay. It would be considered a ruse of warfare, albeit a very dangerous one. Still, it could be and has been used by soldiers with little other choice. However, playing dead and then turning on an enemy that passed you by, might well be considered a violation of the rules of war.